Merge pull request #8028 from overleaf/ae-css-minimizer

Disable cssnano mergeLonghand optimisation in production webpack config

GitOrigin-RevId: cfd19ae5bdbcb86a9c97035b230f5f03f5c7aad0
This commit is contained in:
Alf Eaton 2022-05-19 13:44:09 +01:00 committed by Copybot
parent f00bdeb3f1
commit 81816cfa2c

View file

@ -22,7 +22,12 @@ module.exports = merge(
keep_fnames: /(Error|Exception)$/,
},
}),
new CssMinimizerPlugin(),
new CssMinimizerPlugin({
minimizerOptions: {
// disable mergeLonghand to avoid a cssnano bug https://github.com/cssnano/cssnano/issues/864
preset: ['default', { mergeLonghand: false }],
},
}),
],
},