Skip to content

Commit 52449c3

Browse files
Jack ZhaoTimer
Jack Zhao
authored andcommitted
Only use safe options when packing CSS assets (#4706)
* support scoped packages for cra --scripts-version option * enable safe option to cssnano processor Fixes #4682
1 parent 8169a93 commit 52449c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/webpack.config.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ module.exports = {
153153
cache: true,
154154
sourceMap: shouldUseSourceMap,
155155
}),
156-
new OptimizeCSSAssetsPlugin(),
156+
new OptimizeCSSAssetsPlugin({ cssProcessorOptions: { safe: true } }),
157157
],
158158
// Automatically split vendor and commons
159159
// https://twitter.com/wSokra/status/969633336732905474

0 commit comments

Comments
 (0)