scratchjr/webpack.config.js

42 lines
961 B
JavaScript
Raw Normal View History

var WebpackNotifierPlugin = require('webpack-notifier');
2016-01-12 15:08:37 -05:00
module.exports = {
devtool: 'source-map',
2016-01-12 15:08:37 -05:00
entry: {
app: './src/entry/app.js'
2016-01-12 15:08:37 -05:00
},
output: {
path: __dirname + '/src/build/bundles',
2016-01-12 15:08:37 -05:00
filename: '[name].bundle.js'
},
performance: {
hints: false
},
watchOptions: {
ignored: ["node_modules", "src/build/**/*"]
},
2016-01-12 15:08:37 -05:00
module: {
rules: [
{
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', 'stage-3']
2016-01-12 15:08:37 -05:00
}
}
]
},
plugins: [
new WebpackNotifierPlugin({
title: "ScratchJr",
alwaysNotify: true
})
]
2016-01-12 15:08:37 -05:00
};