diff --git a/bundlesize.config.json b/bundlesize.config.json index 9019fb86c..dae3c6ef9 100644 --- a/bundlesize.config.json +++ b/bundlesize.config.json @@ -1,23 +1,23 @@ { "files": [ { - "path": "./dist/auspice.bundle.*.js", + "path": "./dist/auspice.main.bundle.*.js", "maxSize": "3 kB" }, { - "path": "./dist/auspice.chunk.+([0-9]).bundle.*.js", + "path": "./dist/auspice.?(chunk.)+([0-9]).bundle.*.js", "maxSize": "100 kB" }, { - "path": "./dist/auspice.chunk.core-vendors.bundle.*.js", + "path": "./dist/auspice.?(chunk.)core-vendors.bundle.*.js", "maxSize": "220 kB" }, { - "path": "./dist/auspice.chunk.other-vendors.bundle.*.js", + "path": "./dist/auspice.?(chunk.)other-vendors.bundle.*.js", "maxSize": "150 kB" }, { - "path": "./dist/auspice.chunk.locales.bundle.*.js", + "path": "./dist/auspice.?(chunk.)locales.bundle.*.js", "maxSize": "100 kB" } ] diff --git a/webpack.config.js b/webpack.config.js index 5f760b60a..76194d65b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -185,7 +185,7 @@ const generateConfig = ({extensionPath, devMode=false, customOutputPath, analyze entry, output: { path: outputPath, - filename: `auspice.bundle${!devMode ? ".[contenthash]" : ""}.js`, + filename: `auspice.[name].bundle${!devMode ? ".[contenthash]" : ""}.js`, chunkFilename: `auspice.chunk.[name].bundle${!devMode ? ".[chunkhash]" : ""}.js`, publicPath: "/dist/" },