Skip to content

Fix GENERATE_SOURCEMAP env not working for css sourcemap - #5246

Merged
Timer merged 1 commit into
react:masterfrom
crux153:toggle-css-sourcemap
Oct 2, 2018
Merged

Fix GENERATE_SOURCEMAP env not working for css sourcemap#5246
Timer merged 1 commit into
react:masterfrom
crux153:toggle-css-sourcemap

Conversation

@crux153

@crux153 crux153 commented Oct 2, 2018

Copy link
Copy Markdown
Contributor

This fixes GENERATE_SOURCEMAP env option not being respected for css sourcemap, by checking its presence before passing sourcemap options to OptimizeCSSAssetsPlugin.

It can be simply tested by running react-scripts build with and without GENERATE_SOURCEMAP=false, and see if any sourcemaps are being created under build/static/css

@Timer Timer added this to the 2.0.4 milestone Oct 2, 2018
@Timer

Timer commented Oct 2, 2018

Copy link
Copy Markdown
Contributor

Thanks! For now you can just remove the files safely.

@Timer
Timer merged commit d624f25 into react:master Oct 2, 2018
zmitry pushed a commit to zmitry/create-react-app that referenced this pull request Oct 29, 2018
@lock lock Bot locked and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants