mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 03:31:04 +01:00
64bb8b2989
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
19 lines
485 B
JavaScript
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;
|