Add webpack named modules plugin into build

We need consistent module indexes within our build to be able to use chunkhash for file names
[MAILPOET-1548]
This commit is contained in:
Rostislav Wolny
2018-10-01 16:00:56 +02:00
parent b0f5b4cfe9
commit 19086f8457

View File

@ -480,6 +480,7 @@ module.exports = _.map([adminConfig, publicConfig, migratorConfig, testConfig],
if (config.name !== 'test') {
config.plugins = config.plugins || [];
config.plugins.push(
new webpack.NamedModulesPlugin(),
new webpackMD5HashPlugin(),
new webpackManifestPlugin({
cache: manifestCache