Skip to content

Add vue loader #34

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

Closed
wants to merge 4 commits into from
Closed

Add vue loader #34

wants to merge 4 commits into from

Conversation

julienj
Copy link
Contributor

@julienj julienj commented Jun 19, 2017

This PR is a patch to provide a vue.js support

before :
.addLoader({ test: /\.vue$/, loader: 'vue-loader' })

After
.enableVueLoader()

@weaverryan
Copy link
Member

Thanks @julienj! But this needs a bit more work so that the styles can be extracted. I'm making that easier in #22. Would you mind if I used this PR as a starting point and finished the loader?

enableVueLoader(options) {
this.useVueLoader = true;
this.vueOptions = options;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change options to be a callback, like we do with configureBabel()? The reason is that we will (in order to extract styles) add a bunch of options to the loader automatically. If the user wants to add even more options, we'll want them to do that in callback (we'll pass them our options, then they can change/add them).

@julienj
Copy link
Contributor Author

julienj commented Jun 21, 2017

Thank you.
No problem to continue on your side

@julienj julienj closed this Jun 21, 2017
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

Successfully merging this pull request may close these issues.

2 participants