Add optimize-css webpack plugin
This commit is contained in:
parent
da9fe2b2b5
commit
689b1dc4d6
2 changed files with 4 additions and 1 deletions
|
@ -137,6 +137,7 @@
|
|||
"json-loader": "^0.5.4",
|
||||
"less": "^2.7.1",
|
||||
"less-loader": "^2.2.3",
|
||||
"optimize-css-assets-webpack-plugin": "^1.3.0",
|
||||
"script-loader": "^0.7.0",
|
||||
"style-loader": "^0.13.1",
|
||||
"url-loader": "^0.5.7",
|
||||
|
|
|
@ -2,6 +2,7 @@ var baseConfig = require('./webpackBaseConfig');
|
|||
var webpack = require('webpack');
|
||||
var path = require('path');
|
||||
var ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||||
var OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
||||
|
||||
module.exports = [Object.assign({}, baseConfig, {
|
||||
plugins: baseConfig.plugins.concat([
|
||||
|
@ -52,6 +53,7 @@ module.exports = [Object.assign({}, baseConfig, {
|
|||
'NODE_ENV': JSON.stringify('production')
|
||||
}
|
||||
}),
|
||||
new ExtractTextPlugin("html.min.css")
|
||||
new ExtractTextPlugin("html.min.css"),
|
||||
new OptimizeCssAssetsPlugin()
|
||||
]
|
||||
}];
|
||||
|
|
Loading…
Reference in a new issue