-
Notifications
You must be signed in to change notification settings - Fork 914
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
failed with CssSyntaxError when use less-loader #748
Comments
well, this way works around:
Not sure this is the right as documented. |
That's correct - when you use custom loaders you need to provide the full loader chain. Alternatively you can use |
how to use preLoaders (in vue.config.js)? I was new to the webpack and vue |
yeah! use this I fixed this problem . but get a new error: Failed to mount component: template or render function not defined. found in ---> at src/App.vue |
I'm using less-loader to support less code within vue file. This way should work according to document at https://vue-loader.vuejs.org/en/options.html .
version:
webpack.config.js:
code:
error:
Obviously, vue-loader is putting style-compiler before the less-loader internally. And style-compiler crash into the LESS code before transpile.
The prefixing of style-compiler was added from commit:
8e38245
Did you overlook LESS supporting?
The text was updated successfully, but these errors were encountered: