No Parsed/Gziped sizes if there is build hash in output path
Author: martinkadlec0Created Jul 23, 2019Updated Jun 11, 2021
Labelstype: Bugtype: Featureseverity: 3 (broken)flag: Has pull request
Issue description
If there as build hash in webpack's output path, I get following error from WBA:
Error parsing bundle asset "/xxx/app/dist/[hash]/app.js": no such file.
My webpack output config:
output: {
filename: '[name].js',
path: path.join(__dirname, './dist/[hash]/'),
publicPath: `${cdnPublicPath}[hash]/`,
chunkFilename: '[name].js',
},This causes that there is no gziped/parsed size on the WBA page.
Technical info
- Webpack Bundle Analyzer version: 3.3.2
- Webpack version: 4.35.0
- Node.js version: 10.13
- npm/yarn version: npm 6.9
- OS: Mac OS Mojave
Debug info
How do you use this module? As CLI utility or as plugin? Plugin
If plugin, what options were provided? (e.g. new BundleAnalyzerPlugin({ analyzerMode: 'disabled', generateStatsFile: true }))
No options
What other Webpack plugins were used? webpack.DefinePlugin CircularDependencyPlugin FlowStatusWebpackPlugin ExtractCssChunks HtmlWebpackPlugin SpriteLoaderPlugin
Demo repo
Source: webpack/webpack-bundle-analyzer