-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Adding an extra options object to sass-loader #4434
Comments
Please provide a reproduction as is required. How did you check for the duplicate object? |
After changing the configuration, I used vue-cli-service inspect. I found a rule in it for which I made changes and saw a duplication of the options object there. Here is the repository with the configuration; during inspection, see the sass section, there will be double options everywhere. |
Thanks, we'll check it out |
css: {
loaderOptions: {
sass: {
- options: {
data: `@import "~@/variables.scss";`
- }
},
}
} The example in our documentation does not have the extra |
@sodatea |
I mean, if you do this, the options will be merged correctly:
|
I tried to do as you showed. But as a result, Data is not added to the options, but after them. |
The modification I suggested was that this line in your config is extraneous: |
Version
3.9.3
Environment info
Steps to reproduce
Add in vue.config.js options for sass-loader.
What is expected?
An option with data will be added to the loader options:
{ loader: 'sass-loader', options: { sourceMap: false, ......, data: '@import "~@/variables.scss";' }, }
What is actually happening?
A second options object is created, to which changes are added from vue.config:
{ loader: 'sass-loader', options: { sourceMap: false, ...... }, options: { data: '@import "~@/variables.scss";' }, }
The text was updated successfully, but these errors were encountered: