mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-25 13:10:14 +01:00
27 lines
665 B
JavaScript
27 lines
665 B
JavaScript
var webpack = require('webpack');
|
|
var base = require('./base.config');
|
|
var config = base('development');
|
|
|
|
|
|
// development overrides go here
|
|
config.watch = true;
|
|
|
|
// add poll-options for in vagrant development
|
|
// See http://andrewhfarmer.com/webpack-watch-in-vagrant-docker/
|
|
config.watchOptions = {
|
|
poll: 1000,
|
|
aggregateTimeout: 300,
|
|
};
|
|
|
|
// See http://webpack.github.io/docs/configuration.html#devtool
|
|
config.devtool = 'inline-source-map';
|
|
|
|
// 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'),
|
|
},
|
|
}));
|
|
|
|
module.exports = config;
|