-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Using sourceMap with sass-resources-loader #55
Comments
Still no workaround or solution for this? |
Me too. |
I'm pretty sure that the problem is solvable, but it would take some work. I'm open to a PR. |
I found a solution, in Example {
loader: 'sass-loader',
options: {
sourceMap: true,
outputStyle: 'compressed',
}
}, |
Doesn't work for me. Even with new config: |
there is no "sassOptions", flat it to "options" {
loader: 'sass-loader',
options: {
sourceMap: true,
outputStyle: 'compressed',
}
} |
Yes, there is. In Webpack 4. |
this is not related to webpack, only sass-loader. Which version of |
Also here in documentation, you can see a note about some issues to generate source-map. Which says: In order to avoid this, you can try to update node-sass to latest version or you can try to set within sassOptions the outputStyle option to compressed. |
Thanks for clarification. I'm using "sass-loader": "^8.0.2". |
Hi guys. I am using sourceMap and sass-resources-loader together. Everything works fine but there is a problem with line number when looking at my source code.
For example. This is the code when looking in code console
And this is my code
Since sass-resources-loader imports my variables at the top I get incorect line number in console. How do I resolve this?
This is my config in webpack
The text was updated successfully, but these errors were encountered: