diff --git a/webpack/dashboard.config.js b/webpack/dashboard.config.js index ff65fe0d..eb295df8 100644 --- a/webpack/dashboard.config.js +++ b/webpack/dashboard.config.js @@ -56,6 +56,10 @@ const config = [{ // because the `util` package expects there to be a global variable named `process`. // Thanks to https://stackoverflow.com/a/65018686/14239942 process: 'process/browser' + }), + new WebpackManifestPlugin({ + publicPath: "", + fileName: "dashboard.manifest.json" }) ], devServer: { @@ -82,11 +86,6 @@ module.exports = (env, argv) => { openAnalyzer: false })); - configItem.plugins.push(new WebpackManifestPlugin({ - publicPath: "", - fileName: "dashboard.manifest.json" - })); - configItem.optimization = { splitChunks: { chunks: 'all', diff --git a/webpack/panel.config.js b/webpack/panel.config.js index 37afa12f..86fc321f 100644 --- a/webpack/panel.config.js +++ b/webpack/panel.config.js @@ -58,7 +58,12 @@ const config = [{ performance: { hints: false }, - plugins: [], + plugins: [ + new WebpackManifestPlugin({ + publicPath: "", + fileName: "panel.manifest.json" + }) + ], devServer: { compress: true, port: 9001, @@ -94,11 +99,6 @@ module.exports = (env, argv) => { openAnalyzer: false })); - configItem.plugins.push(new WebpackManifestPlugin({ - publicPath: "", - fileName: "panel.manifest.json" - })); - configItem.optimization = { splitChunks: { chunks: 'all',