[Question] source-maps with css or sass?
See original GitHub issueHi,
I am using sass-loader to compile sass code. Can we have the source-map to trace back the source file with webpack for sass?
Currently, I setup Sass-loader by
{ test: /\.scss/, loader: "style-loader!sass-loader?outputStyle=expanded" },
with
cache: true,
debug: true,
devtool: 'source-map',
'output-pathinfo': true,
Is it possible to trace back the source sass file in chrome dev tools?
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:33 (5 by maintainers)
Top Results From Across the Web
Should I Use Source Maps in Production? | CSS-Tricks
Typically, source maps are a configuration option from the preprocessor. Here's Babel's options. I believe that with Sass, you don't even have ...
Read more >No sourcemap for CSS - sass - Stack Overflow
1 Answer 1 · never — causes no source maps to be generated at all. · always — source maps will always be...
Read more >Using source maps in Sass - Mario Araque
One of the new features in Sass 3.3 is source maps. We can use it to improve the debugging of our Sass code...
Read more >Debugging Sass with Sourcemaps (How To) - Treehouse
Sass creates a sourcemap to help you see the original Sass/SCSS source while debugging in the browser. Sourcemaps contain information that ...
Read more >sass-loader - webpack - JS.ORG
sass / .scss file in which they are specified (like in regular .css files). Thankfully there are a two solutions to this problem:....
Read more >Top Related Medium Post
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This works for me:
I was able to get it working by doing the following: