Hey,
In cssnano there are presets which can be used - https://cssnano.co/guides/presets.
I wanted to use them and tried the following config, but it didn't work.
postcss({
extract: true,
modules: true,
namedExports: true,
minimize: {
preset: ['default', {
discardComments: {
removeAll: true
}
}]
}
})
It seems like when extract
is true
, options are not passed to cssnano. When not extracted, options are passed.
It would be great have this in extract
mode too.
rollup - 1.2.2
rollup-plugin-postcss - 2.0.3
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too