2018-09-11 02:13:38 -04:00
|
|
|
var WebpackNotifierPlugin = require('webpack-notifier');
|
|
|
|
|
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: {
|
2016-01-22 16:20:18 -05:00
|
|
|
app: './src/entry/app.js'
|
2016-01-12 15:08:37 -05:00
|
|
|
},
|
|
|
|
output: {
|
2018-09-11 02:13:38 -04:00
|
|
|
path: __dirname + '/src/build/bundles',
|
2016-01-12 15:08:37 -05:00
|
|
|
filename: '[name].bundle.js'
|
|
|
|
},
|
2018-09-11 02:13:38 -04:00
|
|
|
performance: {
|
|
|
|
hints: false
|
|
|
|
},
|
|
|
|
watchOptions: {
|
|
|
|
ignored: ["node_modules", "src/build/**/*"]
|
|
|
|
},
|
2016-01-12 15:08:37 -05:00
|
|
|
module: {
|
2018-09-11 02:13:38 -04:00
|
|
|
rules: [
|
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']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2018-09-11 02:13:38 -04:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new WebpackNotifierPlugin({
|
|
|
|
title: "ScratchJr",
|
|
|
|
alwaysNotify: true
|
|
|
|
})
|
|
|
|
]
|
2016-01-12 15:08:37 -05:00
|
|
|
};
|