Created by: crux153
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