Add manifest

This commit is contained in:
Elio Struyf
2024-09-19 15:08:49 +02:00
parent b9508df4f8
commit a778be9737
2 changed files with 10 additions and 11 deletions

View File

@@ -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',

View File

@@ -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',