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
[Feature Request] Support to merge duplicate code #6
Comments
I don't plan to support this, there are two plugins postcss-merge-rules and postcss-merge-selectors that enable this type of code tidying. Those plugins combined with |
Not work with the following config ( module.exports = {
plugins: {
'postcss-atrule-bem': {},
'postcss-merge-rules': {}, // or 'postcss-merge-selectors': {},
'postcss-nested': {},
},
}; Or: module.exports = {
plugins: {
'postcss-atrule-bem': {},
'postcss-nested': {},
'postcss-merge-rules': {}, // or 'postcss-merge-selectors': {},
},
}; |
Only works after removed at-rule as this: @block btn {
color: #333;
&:disabled,
&[disabled] {
color: #ccc;
}
} |
I was able to get this working with |
I mean support to write merge rules in source css, not merge rules automatically in bundled css: https://runkit.com/cfy/5a20ba024fb2d10011dac2b8 |
Current:
Feature:
The text was updated successfully, but these errors were encountered: