Description
Description
SCSS SourceMaps in any of the downloadable starter kits or in a fresh build of Gatsby, do not correctly show SCSS SourceMap references in the Web Inspector. In Firefox on Windows you see a Blob reference (Screenshot attached), In Chrome, you see an absolute path that repeats several times (screenshot attached), which while better as I can work out what file the code references, does not look great. I feel like a lot of people must have this issue as all the starter kits i've downloaded have this problem. This issue is present in Gatsby v1 and v2, it is not present in similar Static Generators such as Next.js, so I feel it's not an issue with Webpack.
The same build, when run on Linux, shows source map references correctly which leads me to believe this issue seems to be limited to Windows.
Steps to reproduce
- Clone repository - https://github.com/ueno-llc/ueno-gatsby-starter
- Follow instructions to install, launch gatsby develop.
- Use web inspector to view sourcemap location
Works with any repository from Starter Library or fresh build of Gatsby.
Expected result
Ideally, you will see scss source maps are compiled correctly and display correctly in All Browsers pointing only to a file with extension.
Actual result
You see scss source maps are compiled but in Firefox inspector you see a Blob Reference.
You see scss source maps are compiled but in Chrome inspector you see an absolute path 3x.
You see scss source maps are compiled correctly and display correctly in Chrome on Linux.
Environment
Gatsby 2.1.23
Windows 10
Run gatsby info --clipboard
in your project directory and paste the output here.
Command not recognized.