Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time. Cannot retrieve contributors at this time
36 lines (35 sloc) 967 Bytes
const path = require('path');
module.exports = {
mode: 'production',
entry: {
basicDLA: path.resolve('../01-basic-dla/js/entry.js'),
directionalBias: path.resolve('../02-directional-bias/js/entry.js'),
differentSizes: path.resolve('../03-different-sizes/js/entry.js'),
differentShapes: path.resolve('../04-different-shapes/js/entry.js'),
svgInput: path.resolve('../05-svg-input/js/entry.js'),
interactivity: path.resolve('../06-interactivity/js/entry.js'),
flowfields: path.resolve('../07-flowfields/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')
}
}
You can’t perform that action at this time.