Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand Down