Use hash of whole build instead of named modules and chunkhash
[MAILPOET-1548]
This commit is contained in:
@@ -18,8 +18,8 @@ var baseConfig = {
|
|||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'assets/js'),
|
path: path.join(__dirname, 'assets/js'),
|
||||||
filename: (PRODUCTION_ENV) ? '[name].[chunkhash:8].js' : '[name].js',
|
filename: (PRODUCTION_ENV) ? '[name].[hash:8].js' : '[name].js',
|
||||||
chunkFilename: (PRODUCTION_ENV) ? '[name].[chunkhash:8].chunk.js' : '[name].chunk.js'
|
chunkFilename: (PRODUCTION_ENV) ? '[name].[hash:8].chunk.js' : '[name].chunk.js'
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
modules: [
|
modules: [
|
||||||
@@ -480,7 +480,6 @@ module.exports = _.map([adminConfig, publicConfig, migratorConfig, testConfig],
|
|||||||
if (config.name !== 'test') {
|
if (config.name !== 'test') {
|
||||||
config.plugins = config.plugins || [];
|
config.plugins = config.plugins || [];
|
||||||
config.plugins.push(
|
config.plugins.push(
|
||||||
new webpack.NamedModulesPlugin(),
|
|
||||||
new webpackMD5HashPlugin(),
|
new webpackMD5HashPlugin(),
|
||||||
new webpackManifestPlugin({
|
new webpackManifestPlugin({
|
||||||
cache: manifestCache
|
cache: manifestCache
|
||||||
|
Reference in New Issue
Block a user