We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3e56cd commit fed4100Copy full SHA for fed4100
packages/react-scripts/config/webpack.config.prod.js
@@ -158,7 +158,17 @@ module.exports = {
158
sourceMap: shouldUseSourceMap,
159
}),
160
new OptimizeCSSAssetsPlugin({
161
- cssProcessorOptions: { parser: safePostCssParser },
+ cssProcessorOptions: {
162
+ parser: safePostCssParser,
163
+ map: {
164
+ // `inline: false` forces the sourcemap to be output into a
165
+ // separate file
166
+ inline: false,
167
+ // `annotation: true` appends the sourceMappingURL to the end of
168
+ // the css file, helping the browser find the sourcemap
169
+ annotation: true,
170
+ },
171
172
173
],
174
// Automatically split vendor and commons
0 commit comments