-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Supporting dynamic load multi projects #5178
Comments
Yeah, I was thinking about this feature too. |
I had read your project. But i didn't get your points how to get project dynamic from browser.For example,
How do your define your entry dynamic? |
So if cli-service support dynamic entry load,that most developer don't need to install another plugin in your vue config. |
Yeah makes sense. I'd like to add it after a flag (e.g. |
Got it.Thanks.I'll try to use this solution. |
I'm not sure if I understand correctly. |
Hi,I had run your plugin in my project. It works. #L3 And the PR here |
That's a good way to resolve this problem. |
Hope this feature will born soon !!! |
What problem does this feature solve?
We config mutil projects in vue/cli3,it'lll load all projects we configs. It waste time and most of the projects is useless.
For example,we have projceA,projectB,projectC,we only need to develop projectB,but vue/cli3 load all .
So,what the feature we need?That is,we use webpack-dev-serve listen to the url the browser accept.And then,resolve the projcet from url,then build the project we accept.
This feature improve development efficiency deeply.
What does the proposed API look like?
At this file,
https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-service/lib/commands/serve.js
.MultiEntryPlugin
findHtmlPlugin
means to loadHTMLWebpackPlugin
to this projectThat's all the step i describe about the feature.
I had implemented the feature in my local environment. works well.
I hope vue/cli team can accept this feature.Thanks for reading.
(pardon my poor description)
The text was updated successfully, but these errors were encountered: