Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunk names are not respected under --target lib #1251

Closed
doublemarked opened this issue May 9, 2018 · 0 comments
Closed

Chunk names are not respected under --target lib #1251

doublemarked opened this issue May 9, 2018 · 0 comments

Comments

@doublemarked
Copy link

doublemarked commented May 9, 2018

Version

3.0.0-beta.9

Reproduction link

https://github.com/doublemarked/vue-libconf-issues

Steps to reproduce

  1. git clone https://github.com/doublemarked/vue-libconf-issues.git
  2. npm install && npm run build
  3. Observe filenames in dist/ are using chunk ids, not names, despite webpackChunkName settings during import in index.js

What is expected?

Application of webpackChunkName: "name" during import should influence output filenames.

What is actually happening?

Chunks are grouped based on webpackChunkName but filenames use chunk ids (numbers).


Recent PR #1173 made it possible to specify chunk names for app builds, but this configuration is clobbered by the lib build configuration. These settings should also be applied when building with --target lib.

@doublemarked doublemarked changed the title Chunk names are not respected under --target lib Chunk names are not respected under --target lib May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant