-
Notifications
You must be signed in to change notification settings - Fork 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
Issues with { cssProcessorOptions: { safe: true } } on 5.0.0 #65
Comments
Can you try this: cssnano/cssnano#119 (comment) |
Hmm but that issue is quite old, and with 4.0.2 it works as it should. I just downgraded to 4.0.2 again, and it works again, no other dependencies have changed in my project. |
On The solution from cssnano/cssnano#119 (comment) (comment) did not work? |
Maybe, the cause is relative to the difference in safe option between v3 and v4 in cssnano. One of these default changes would be the problem. To work with const safeParser = require('postcss-safe-parser');
new OptimizeCssAssetsPlugin({
cssProcessorOptions: {
parser: safeParser,
discardComments: {
removeAll: true
}
}
}) |
I tried to update to 5.0.0, but building now throws this error:
The text was updated successfully, but these errors were encountered: