mirror of https://github.com/status-im/codimd.git
Config webpack css hash in production
This commit is contained in:
parent
cd5977cd5f
commit
971bfe29f8
|
@ -1,3 +1,8 @@
|
|||
var baseConfig = require('./webpackBaseConfig');
|
||||
var ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||||
|
||||
module.exports = baseConfig;
|
||||
module.exports = Object.assign({}, baseConfig, {
|
||||
plugins: baseConfig.plugins.concat([
|
||||
new ExtractTextPlugin("[name].css")
|
||||
])
|
||||
});
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -15,7 +15,6 @@ module.exports = {
|
|||
"moment": "moment",
|
||||
"Handlebars": "handlebars"
|
||||
}),
|
||||
new ExtractTextPlugin("[name].css"),
|
||||
new webpack.optimize.CommonsChunkPlugin({
|
||||
names: ["cover", "index", "pretty", "slide", "vendor"],
|
||||
children: true,
|
||||
|
|
Loading…
Reference in New Issue