Skip to content

Commit

Permalink
Only use safe options when packing CSS assets (#4706)
Browse files Browse the repository at this point in the history
* support scoped packages for cra --scripts-version option

* enable safe option to cssnano processor

Fixes #4682
  • Loading branch information
Jack Zhao authored and Timer committed Jul 23, 2018
1 parent 8169a93 commit 52449c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ module.exports = {
cache: true,
sourceMap: shouldUseSourceMap,
}),
new OptimizeCSSAssetsPlugin(),
new OptimizeCSSAssetsPlugin({ cssProcessorOptions: { safe: true } }),
],
// Automatically split vendor and commons
// https://twitter.com/wSokra/status/969633336732905474
Expand Down

0 comments on commit 52449c3

Please sign in to comment.