-
-
Notifications
You must be signed in to change notification settings - Fork 211
[2.0.6] If enable cssnano plugin will throw error. #262
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
postcss.config.js module.exports = ({env}) => {
return {
- sourceMap: true,
plugins: {
// filterPlugins: false,
autoprefixer: {},
cssnano: {discardComments: {removeAll: true}}
}
}
}; webpack.config.js - 'postcss-loader'
+ { loader: 'postcss-loader', options: { sourceMap: true } }
|
orignal version:
update cssnano
I think this should be a bug? |
That's
Please show the file and file tree for this, I don't understand why Maybe http://cssnano.co/optimisations/normalizeurl/
|
@michael-ciniawsky yes, you are right, I think the best practice is not enable cssnano at postcss-loader, use |
I will open an issue in |
cssnano/cssnano#376 Feel free to comment 😛 |
If I rm cssnano, the webpack compile success, but will throw error when enable cssnano, I don't know this is postcss-loader problem or cssnano problem.
Error:
postcss.config.js:
The text was updated successfully, but these errors were encountered: