webpack / webpack/webpack-bundle-analyzer
No Parsed/Gziped sizes if there is build hash in output path
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 12.7k
- Forks
- 514
- Avg merge
- 6d 2h
- Merged PRs (30d)
- 4
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked wba-build-hash demo repo and reproduce the plugin error using the webpack output path containing [hash]. Trace how the analyzer resolves the emitted asset path; done means hashed output assets are parsed and their parsed and gzipped sizes appear on the analyzer page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100