Skip to content

Commit

Permalink
Fix missing borders in Selects
Browse files Browse the repository at this point in the history
Disable mergeLongHand in cssnano.

The official fix has already landed upstream [1] but we unfortunately can't
update cssnano without updating also CssMinimizerPlugin.
An update of CssMinimizerPlugin will not work without webpack-5.

Therefore let's keep the WA for now.

[1] cssnano/cssnano#1057
  • Loading branch information
KKoukiou committed Jun 7, 2021
1 parent 5c5bd62 commit 0837938
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webpack.config.js
Expand Up @@ -433,7 +433,15 @@ module.exports = {

optimization: {
minimize: production,
minimizer: [new TerserJSPlugin({ extractComments : false }), new CssMinimizerPlugin()],
minimizer: [
new TerserJSPlugin({ extractComments : false }),
new CssMinimizerPlugin({
minimizerOptions: {
preset: ['default', { mergeLonghand: false }]
}
})
],

},

module: {
Expand Down

0 comments on commit 0837938

Please sign in to comment.