2016-09-22 19:54:57 +00:00
|
|
|
var webpack = require('webpack');
|
2016-12-19 18:03:14 +00:00
|
|
|
var base = require('./base.config');
|
2016-02-24 10:44:14 +00:00
|
|
|
var config = base('development');
|
|
|
|
|
|
|
|
|
|
|
|
// development overrides go here
|
|
|
|
config.watch = true;
|
2016-06-17 13:48:33 +00: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-26 14:24:02 +00:00
|
|
|
// See http://webpack.github.io/docs/configuration.html#devtool
|
|
|
|
config.devtool = 'inline-source-map';
|
2016-02-24 10:44:14 +00:00
|
|
|
|
2016-09-22 19:54:57 +00: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 10:44:14 +00:00
|
|
|
module.exports = config;
|