2016-09-22 21:54:57 +02:00
|
|
|
var webpack = require('webpack');
|
2016-12-19 19:03:14 +01:00
|
|
|
var base = require('./base.config');
|
2016-02-24 11:44:14 +01:00
|
|
|
var config = base('development');
|
|
|
|
|
|
|
|
|
|
|
|
// development overrides go here
|
|
|
|
config.watch = true;
|
2016-06-17 15:48:33 +02:00
|
|
|
|
|
|
|
// add poll-options for in vagrant development
|
|
|
|
// See http://andrewhfarmer.com/webpack-watch-in-vagrant-docker/
|
|
|
|
config.watchOptions = {
|
|
|
|
poll: 1000,
|
|
|
|
aggregateTimeout: 300,
|
|
|
|
};
|
|
|
|
|
2016-09-22 21:54:57 +02:00
|
|
|
// Set process.env.NODE_ENV to development to enable JS development aids.
|
|
|
|
config.plugins.push(new webpack.DefinePlugin({
|
|
|
|
'process.env': {
|
|
|
|
NODE_ENV: JSON.stringify('development'),
|
|
|
|
},
|
|
|
|
}));
|
|
|
|
|
2016-02-24 11:44:14 +01:00
|
|
|
module.exports = config;
|