Config webpack css hash in production

This commit is contained in:
Yukai Huang
2016-11-02 11:25:21 +08:00
parent cd5977cd5f
commit 971bfe29f8
3 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
var baseConfig = require('./webpackBaseConfig');
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = Object.assign({}, baseConfig, {
plugins: baseConfig.plugins.concat([
@@ -15,7 +16,8 @@ module.exports = Object.assign({}, baseConfig, {
},
mangle: false,
sourceMap: false
})
}),
new ExtractTextPlugin("[name].[hash].css")
]),
output: {