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:
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user