1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-14 04:34:21 +02:00

cleanup based on uglify feedback

This commit is contained in:
Pomax
2016-01-09 23:31:52 -08:00
parent b3da8f4f74
commit 6dffa0ff0f
16 changed files with 38 additions and 35233 deletions

View File

@@ -11,6 +11,8 @@ var webpackLoaders = [
__dirname + '/lib/p-loader'
];
var plugins = [];
// Dev mode: make certain concessions to speed up dev work:
if(process.argv.indexOf("--prod") === -1) {
// use the webpack hot Reload server:
@@ -20,6 +22,9 @@ if(process.argv.indexOf("--prod") === -1) {
webpackLoaders.push(__dirname + '/lib/textarea-loader');
}
// Prod mode: make sure to minify the bundle
else { plugins.push(new webpack.optimize.UglifyJsPlugin()); }
// And the final config that webpack will read in.
module.exports = {
entry: entry,
@@ -38,4 +43,5 @@ module.exports = {
}
]
},
plugins: plugins
};