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

Ability to bundle async web components by group #4871

Open
spaceemotion opened this issue Nov 21, 2019 · 0 comments
Open

Ability to bundle async web components by group #4871

spaceemotion opened this issue Nov 21, 2019 · 0 comments

Comments

@spaceemotion
Copy link

spaceemotion commented Nov 21, 2019

What problem does this feature solve?

Currently, each web component is loaded via its own file. There is no way to give them names, so in one release .1.js could mean a date picker, and in the next it could be a modal component.

It would be helpful to have a way to group them by name like .forms.js.

If there is a way to register components in a JS file, without using the web component target directly, Using the webpackChunkName hint would work as well.

What does the proposed API look like?

The ability to chain a group parameter like so:

vue-cli-service build
  --target wc-async
  --inline-vue
  --name foo
  --group=input:src/components/input
  --group=layout:src/components/layout
   'src/components/**/*.vue'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants