Skip to content

Commit 1db742a

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)