diff --git a/webpack.config.js b/webpack.config.js index 9aaabbe8..c5b77a93 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -16,14 +16,7 @@ var env = 'dev', time = Date.now(), devtool = 'eval', mode = 'development', - stats = 'minimal', - plugins = [ - //new webpack.NoErrorsPlugin(), - new webpack.DefinePlugin({ - __ENV__: JSON.stringify(env), - ___BUILD_TIME___: time - }) - ]; + stats = 'minimal'; // Production environment if(PROD) { @@ -34,6 +27,14 @@ if(PROD) { outputPath = __dirname + '/build/public/assets/js'; } +var plugins = [ + //new webpack.NoErrorsPlugin(), + new webpack.DefinePlugin({ + __ENV__: JSON.stringify(env), + ___BUILD_TIME___: time + }) +]; + console.log('Webpack build - ENV: ' + env + ' V: ' + time); console.log(' - outputPath ', outputPath); console.log(' - includePath ', includePath);