-
Notifications
You must be signed in to change notification settings - Fork 17
/
webpack.config.js
35 lines (34 loc) · 889 Bytes
/
webpack.config.js
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');
module.exports = {
mode: 'development',
entry: {
basic: path.resolve('experiments/basic/js/entry.js'),
bounds: path.resolve('experiments/bounds/js/entry.js'),
obstacles: path.resolve('experiments/obstacles/js/entry.js'),
marginalGrowth: path.resolve('experiments/marginal-growth/js/entry.js'),
painting: path.resolve('experiments/painting/js/entry.js'),
images: path.resolve('experiments/from-images/js/entry.js')
},
module: {
rules: [
{
test: /\.svg$/,
loader: 'svg-inline-loader'
}
]
},
devtool: 'inline-source-map',
devServer: {
host: '127.0.0.1',
port: 9001,
publicPath: '/dist/',
contentBase: path.resolve('./'),
compress: true,
open: true,
watchContentBase: true
},
output: {
filename: '[name].bundle.js',
path: path.resolve('dist')
}
}