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

How to add less plugin for single vue component file #534

Closed
bq-hentai opened this issue Jul 24, 2017 · 1 comment
Closed

How to add less plugin for single vue component file #534

bq-hentai opened this issue Jul 24, 2017 · 1 comment

Comments

@bq-hentai
Copy link

bq-hentai commented Jul 24, 2017

I use vue-cli to generate my project. And I use less. I need to use a less plugin. But error occurred.
Plugin.install is not a function.

I noticed that less-loader use loader-utils to get options. And in loader-utils, the query is a string like this ?{"plugins":[{}],"sourceMap":false}. So the loader can't get the correct plugin instance (the install function is in the prototype object).

I found that if I use use option, the query is an object. I am not familiar to webpack. So how can I fix this.

similar ref

P.S. less-loader v4.0.1 not this bug

@posva
Copy link
Member

posva commented Jul 24, 2017

I suggest you to ask your question on the forum, the Discord server, gitter or StackOverflow.

I think this is more related to vue-loader

@posva posva closed this as completed Jul 24, 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

No branches or pull requests

2 participants