0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00
wagtail/client/webpack/dev.config.js
Janneke Janssen 64bb8b2989 Move webpack configuration in subfolder of client/
Move webpack configuration to a subfolder in the client directory

Remove trailing whitespace

Rename prd.config.js to prod.config.js

Simplify lint:js target path
2017-01-26 01:16:04 +02:00

19 lines
485 B
JavaScript

var webpack = require('webpack');
var base = require('./base.config');
var config = base('development');
// development overrides go here
config.watch = true;
// 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;