-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwebpack.config.js
More file actions
35 lines (33 loc) · 1.22 KB
/
Copy pathwebpack.config.js
File metadata and controls
35 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const path = require('path');
const examplesPath = 'examples';
module.exports = {
entry: {
cube: path.join(__dirname, examplesPath, '01-Cube'),
sprites: path.join(__dirname, examplesPath, '02-Sprites'),
model: path.join(__dirname, examplesPath, '03-Model'),
scene: path.join(__dirname, examplesPath, '04-Scene'),
lights: path.join(__dirname, examplesPath, '05-Lights'),
shaders: path.join(__dirname, examplesPath, '06-Shaders'),
postprocessing: path.join(__dirname, examplesPath, '07-PostProcessing'),
skybox: path.join(__dirname, examplesPath, '08-Skybox'),
video: path.join(__dirname, examplesPath, '09-Video'),
culling: path.join(__dirname, examplesPath, '10-Culling'),
material: path.join(__dirname, examplesPath, '11-Material'),
},
output: {
path: path.join(__dirname, examplesPath, 'build'),
filename: '[name].js',
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules\/(?!(gl-matrix|webgl-constants)\/).*/,
loader: 'babel-loader?cacheDirectory=true',
},
],
},
optimization: {
sideEffects: false,
},
};