2016-01-12 15:08:37 -05:00
|
|
|
module.exports = {
|
2016-01-13 15:20:19 -05:00
|
|
|
devtool: 'source-map',
|
2016-01-12 15:08:37 -05:00
|
|
|
entry: {
|
|
|
|
index: './src/entry/index.js',
|
2016-01-13 16:04:29 -05:00
|
|
|
editor: './src/entry/editor.js',
|
|
|
|
home: './src/entry/home.js'
|
2016-01-12 15:08:37 -05:00
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: './src/build/bundles',
|
|
|
|
filename: '[name].bundle.js'
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
loaders: [
|
2016-01-13 15:20:19 -05:00
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
include: /node_modules/,
|
|
|
|
loaders: ['strip-sourcemap-loader']
|
|
|
|
},
|
2016-01-12 15:08:37 -05:00
|
|
|
{
|
|
|
|
loader: 'babel-loader',
|
|
|
|
exclude: /node_modules/,
|
|
|
|
test: /\.jsx?$/,
|
|
|
|
query: {
|
|
|
|
presets: ['es2015']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|