scratchjr/webpack.config.js

29 lines
670 B
JavaScript
Raw Normal View History

2016-01-12 15:08:37 -05:00
module.exports = {
devtool: 'source-map',
2016-01-12 15:08:37 -05:00
entry: {
index: './src/entry/index.js',
editor: './src/entry/editor.js'
},
output: {
path: './src/build/bundles',
filename: '[name].bundle.js'
},
module: {
loaders: [
{
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']
}
}
]
}
};