Skip to content

Commit

Permalink
Add manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Sep 19, 2024
1 parent b9508df commit a778be9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
9 changes: 4 additions & 5 deletions webpack/dashboard.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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',
Expand Down
12 changes: 6 additions & 6 deletions webpack/panel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ const config = [{
performance: {
hints: false
},
plugins: [],
plugins: [
new WebpackManifestPlugin({
publicPath: "",
fileName: "panel.manifest.json"
})
],
devServer: {
compress: true,
port: 9001,
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit a778be9

Please sign in to comment.