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

Explore creating webpack plugin #13

Open
DaniJG opened this issue May 22, 2019 · 0 comments
Open

Explore creating webpack plugin #13

DaniJG opened this issue May 22, 2019 · 0 comments

Comments

@DaniJG
Copy link
Contributor

DaniJG commented May 22, 2019

An alternative way of achieving the same results could be creating a webpack plugin that:

  • adds all the components/views/etc into the compilation context
  • keeps track of all the found components/views/etc into an object
  • uses the webpack.ProvidePlugin to make the object keeping track of components/views/etc available to src/main.js
  • The Vue plugin just needs to loop through components/views/etc and call Vue.use (rather than the plugin having to call require.context!)

Some links from a quick google session:

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