-
Notifications
You must be signed in to change notification settings - Fork 58
The v5 plugin API was not updated to support cssnano v4 #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
To disable certain plugins, you need to do it in "cssnano": {
"preset": [
"default",
{"cssDeclarationSorter": {"exclude": true}}
]
} or in module.exports = {
plugins: [
require('cssnano')({
preset: ['default', {
cssDeclarationSorter: {
exclude: true,
},
}],
}),
],
}; Disabling in |
I see what you're saying @rofrol. But the plugin's API could be updated to receive |
@jzempel It's not my plugin |
#73 solved this. If not tell me so i can reopen the issue. |
v5.0.0 was a breaking change in that it was updated to depend on cssnano v4.0.2. However, this plugin was not updated to receive options per the PostCSS 6.x breaking change described by cssnano.
Please see https://cssnano.co/guides/presets/ for updated API details.
For example, attempt the following:
Result: declarations will still be sorted and whitespace will be compressed by cssnano 4.
Reference:
processOptions
; 3rd parameter ispluginOptions
.The text was updated successfully, but these errors were encountered: