Use contenthash for ExtractTextWebpackPlugin ()

[hash] is not documented.
signup-info-prompt
Akihiko Odaki 2017-10-27 23:54:20 +09:00 committed by unarist
parent 781105293c
commit e4080772b5
1 changed files with 1 additions and 1 deletions
config/webpack

View File

@ -55,7 +55,7 @@ module.exports = {
resource.request = resource.request.replace(/^history/, 'history/es');
}
),
new ExtractTextPlugin(env.NODE_ENV === 'production' ? '[name]-[hash].css' : '[name].css'),
new ExtractTextPlugin(env.NODE_ENV === 'production' ? '[name]-[contenthash].css' : '[name].css'),
new ManifestPlugin({
publicPath: output.publicPath,
writeToFileEmit: true,