create-react-app sass sourcemaps not working
Sass sourcemaps shows only on yarn build
Can we have sourcemaps enabled by default in development ! yarn start
Environment
Node: v11.1.0 yarn: v1.12.1 npm: v6.4.1 Chrome: v70


This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Any estimate for an official fix on this? Thanks.
Any Updates on this ?
Is there a working workaround ?
I suspect the team isn't moving particularly fast on this (btw team you are doing an excellent job!), because the react approach favours component level styling over a sass approach. However if sass is being support then source maps probably should be too. I'd certainly find it useful!
Anybody have temporarily solution ? :(
The following did work for me:
- open node_modules\react-scripts\config\webpack.config.js
- replace "isEnvProduction" with "isEnvDevelopment" for the css-loader, css-module loader, sass loader and sass module loader (between lines 443 - 500)
- start development process with "npm start"

The following did work for me:
- open node_modules\react-scripts\config\webpack.config.js
- replace "isEnvProduction" with "isEnvDevelopment" for the css-loader, css-module loader, sass loader and sass module loader (between lines 443 - 500)
- start development process with "npm start"
@agairing Those changes would be lost on every npm install so I would advice against ever editing anything inside node_modules
@NotAmaan Right. It's just intended as a temporary solution (if you need working source maps - like myself....).
bump.
I tried the solution from @agairing - but the source maps all point to main.scss and not the individual scss files. So there is still something missing.
[edit] process.env.GENERATE_SOURCEMAP needed to be set to true.
I just saw, that there are also 2 more spots in the "webpack.config.js" configuration file where I did replace isEnvProduction with isEnvDevelopment:

Thanks @agairing for the workaround suggestion.
As @NotAmaan pointed out, this would be lost on npm install, so not ideal on my end.
Could anyone share some light on whether an official fix is being considered? Would be much appreciated (even if later than sooner, but at least to know if it will be officially fixed eventually)
Also, I've created the following SO post a while back, just in case anyone wanna jump in: https://stackoverflow.com/questions/53450140/create-react-app-sass-source-maps-not-working
Thank you.
@syden10, we have #5713 that should fix this.
@ianschmitz THANK YOU Will it be available in next release ? or is it available now !
@ianschmitz Thanks so much for the reply!
Tried updating to 2.1.3 yesterday but still wasn't working, would be up on next release?
Please follow #5713 for updates.
Will do, thanks again.
This is fixed in the latest release.
This will be reverted because of #6399.
Any news on this?