inject NODE_ENV into webpack - probably fixes #595 (#599)

This commit is contained in:
Devin Howard 2016-08-11 01:13:54 +08:00 committed by Connor Turland
parent beb52bc471
commit 9db5ce551e

View file

@ -3,6 +3,11 @@ const webpack = 'webpack'
const config = module.exports = {
context: __dirname,
plugins: [
new webpack.DefinePlugin({
"process.env.NODE_ENV": `"${process.env.NODE_ENV || 'development'}"`
})
],
module: {
loaders: [
{