mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-22 06:15:18 +00:00
Optimize Webpack "process" env
This commit is contained in:
@@ -51,6 +51,10 @@ module.exports = {
|
|||||||
].concat(isDev ? [
|
].concat(isDev ? [
|
||||||
new webpack.HotModuleReplacementPlugin()
|
new webpack.HotModuleReplacementPlugin()
|
||||||
] : [
|
] : [
|
||||||
|
new webpack.DefinePlugin({
|
||||||
|
'process.browser': true,
|
||||||
|
'process.env.NODE_ENV': '"production"'
|
||||||
|
}),
|
||||||
new ExtractTextPlugin('main.css'),
|
new ExtractTextPlugin('main.css'),
|
||||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||||
new UglifyJSPlugin()
|
new UglifyJSPlugin()
|
||||||
|
|||||||
Reference in New Issue
Block a user