Add comments to clarify some Webpack settings
[MAILPOET-1667]
This commit is contained in:
@@ -20,6 +20,7 @@ const baseConfig = {
|
|||||||
minimizer: [
|
minimizer: [
|
||||||
new webpackTerserPlugin({
|
new webpackTerserPlugin({
|
||||||
terserOptions: {
|
terserOptions: {
|
||||||
|
// preserve identifier names for easier debugging & support
|
||||||
mangle: false,
|
mangle: false,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
@@ -395,6 +396,7 @@ const testConfig = {
|
|||||||
},
|
},
|
||||||
resolveLoader: {
|
resolveLoader: {
|
||||||
alias: {
|
alias: {
|
||||||
|
// replace 'amd-inject-loader' with a wrapper fixed for Webpack 4
|
||||||
'amd-inject-loader': path.join(__dirname, 'assets/js/src/amd-inject-loader-fixed.js'),
|
'amd-inject-loader': path.join(__dirname, 'assets/js/src/amd-inject-loader-fixed.js'),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -411,6 +413,7 @@ module.exports = [adminConfig, publicConfig, migratorConfig, testConfig].map((co
|
|||||||
config.plugins = config.plugins || [];
|
config.plugins = config.plugins || [];
|
||||||
config.plugins.push(
|
config.plugins.push(
|
||||||
new webpackManifestPlugin({
|
new webpackManifestPlugin({
|
||||||
|
// create single manifest file for all Webpack configs
|
||||||
seed: manifestSeed,
|
seed: manifestSeed,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user