mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-01 09:01:04 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user