|
|
@ -33,16 +33,12 @@ if (minimize) { |
|
|
|
NODE_ENV: JSON.stringify('production') |
|
|
|
NODE_ENV: JSON.stringify('production') |
|
|
|
} |
|
|
|
} |
|
|
|
})); |
|
|
|
})); |
|
|
|
|
|
|
|
plugins.push(new webpack.optimize.ModuleConcatenationPlugin()); |
|
|
|
plugins.push(new webpack.optimize.UglifyJsPlugin({ |
|
|
|
plugins.push(new webpack.optimize.UglifyJsPlugin({ |
|
|
|
compress: { |
|
|
|
compress: { |
|
|
|
// It is nice to see warnings from UglifyJsPlugin that something is
|
|
|
|
|
|
|
|
// unused/removed.
|
|
|
|
|
|
|
|
warnings: true |
|
|
|
warnings: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
extractComments: true, |
|
|
|
extractComments: true, |
|
|
|
|
|
|
|
|
|
|
|
// Use the source map to map error message locations to modules.
|
|
|
|
|
|
|
|
sourceMap: true |
|
|
|
sourceMap: true |
|
|
|
})); |
|
|
|
})); |
|
|
|
} |
|
|
|
} |
|
|
|