-
Notifications
You must be signed in to change notification settings - Fork 916
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
Compiling a codebase with SCSS and SASS files results in syntax error #1580
Comments
This works well, in a non-webpacker setup. Having zero experience with webpacker, a quick look at its docs tells me that it comes preconfigured to parse sass. so my first assumption would be that by adding your own sass config on top of the existing one, both actually run sequentially (webpack always runs all rules whose Essentially, you're now processing every sass file twice. It might be enough to actually remove the default config for sass files before adding your own. So this is seems more related to how one correctly adjusts/extends webpacker's webpack config than a problem related to vue-loader |
I suspected a similar thing, that I'm not replacing webpacker's config but rather extending it (It appears |
Let's see if this behaviour can be overridden .. In any case not a vue-loader issue (I'll close this ASAP) |
I nuked the pre-configured css/sass/scss rules with:
it was the happiest 4 lines I had to code. Now it compiles! No sourceMaps though , and I couldn't find any info in the vue-loader doc. But I'll close and keep looking! |
Version
15.7.1
Reproduction link
https://codesandbox.io/s/mj55qk20v
I am using https://github.com/rails/webpacker/ which makes it practically impossible to create a min repro link
Steps to reproduce
Hoping this won't be closed.. I am creating this issue because I saw other issues with the same problem and I also read this : https://vuetifyjs.com/en/customization/sass-variables#single-file-components . It seems there's a real issue with how vue-loader is handling a combination of SASS/SCSS files? Could you confirm?
My codebase has both SASS and SCSS syntax files.
compilation result:
What is expected?
Compilation succesful
What is actually happening?
The text was updated successfully, but these errors were encountered: