File tree 1 file changed +10
-8
lines changed
packages/react-scripts/config
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,16 @@ module.exports = {
171
171
new OptimizeCSSAssetsPlugin ( {
172
172
cssProcessorOptions : {
173
173
parser : safePostCssParser ,
174
- map : {
175
- // `inline: false` forces the sourcemap to be output into a
176
- // separate file
177
- inline : false ,
178
- // `annotation: true` appends the sourceMappingURL to the end of
179
- // the css file, helping the browser find the sourcemap
180
- annotation : true ,
181
- } ,
174
+ map : shouldUseSourceMap
175
+ ? {
176
+ // `inline: false` forces the sourcemap to be output into a
177
+ // separate file
178
+ inline : false ,
179
+ // `annotation: true` appends the sourceMappingURL to the end of
180
+ // the css file, helping the browser find the sourcemap
181
+ annotation : true ,
182
+ }
183
+ : false ,
182
184
} ,
183
185
} ) ,
184
186
] ,
You can’t perform that action at this time.
0 commit comments