Cannot specify output chunk names
See original GitHub issueVersion
3.0.0-beta.6
Reproduction link
Steps to reproduce
- Specify a chunk using dynamic import syntax
- Add a chunk name
import(/* webpackChunkName: "profile" */ "./views/Profile/Profile.vue")
- Build
yarn run build
What is expected?
File Size Gzipped
dist/js/profile.e9349658.js 31.66 kb 5.56 kb
What is actually happening?
File Size Gzipped
dist/js/0.e9349658.js 31.66 kb 5.56 kb
Sorry if this is has already been posted. Could not find a similar issue.
The other webpack comments (webpackMode
) work fine
Possible duplicate #1097
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Webpack 5 {output: chunkFilename} not working
In my webpack config, I use single-file entry & the splitChunks option to separate the game code from the libraries I am using....
Read more >Under The Hood - webpack
By default, there is no name for non-initial chunks so that a unique ID is used instead of a name. When using dynamic...
Read more >15 Common Problems with rmarkdown (and some solutions)
Change the chunk name of one of them! 15.4 “Not what I ordered”: Objects not created in the right order. What it might...
Read more >2.6 R code chunks and inline R code | R Markdown - Bookdown
For example, you can choose hide text output via the chunk option results ... of chunk options in knitr documented at https://yihui.name/knitr/options.
Read more >Code Chunks: Comparing Sweave and Knitr
... the output is included, and so forth, can be specified after the chunk's name. ... 1. echo: if TRUE, the R code...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this line is the problematic one:
https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-service/lib/config/prod.js#L8
Please try this in vue.config.js (can’t do that myelf right now):
If that solves the problem, we should change ths with a PR.
This doesn’t work if you’re building as
lib
orwc
, because the lib/wc config is applied after the vue.config.js.