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
Reordering of border-radius
properties in the output breaks the cascade
#592
Comments
@afgomez Try to disable |
@andyjansson I tried in a vue-cli project and it doesn't change a thing |
@lionel-bijaoui I don't know about your setup, but I tested the snippet that @afgomez posted, and disabling |
@andyjansson Here is an example repo, but right now I don't know if this is related to CSSNano or Vue-cli. |
Maybe you could try vue-cli 3 has this configure: new OptimizeCssnanoPlugin(
{
sourceMap: false,
cssnanoOptions: {
safe: true,
autoprefixer: {
disable: true
},
mergeLonghand: false
}
}
)
/* Before */
div {
background-color: #eee;
background: #fff;
}
/* After */
div{background:#fff;background-color:#eee} Isn't it treated as a bug? |
@titansnow can you provide |
@evilebottnawi It’s 4.1.0 |
@titansnow looks like a bug, we should not move |
@evilebottnawi it's because of |
@afgomez I looked into your issue. You didn't set the options to disable module.exports = {
chainWebpack: config => {
config.when(process.env.NODE_ENV === "production", config => {
config.plugin("optimize-css").tap(args => {
args[0].cssnanoOptions.preset[1].cssDeclarationSorter = false;
return args;
});
});
}
}; |
Duplicate. Close in favor #535 |
Seems like |
At this point of time, it does not, no. It handles |
Hi!
Latest stable (4.1.0) seems to change the order of certain properties, breaking the cascade.
Consider this CSS:
When pasted in the playground, it minimizes as:
The shorthand
border-radius
overrides the specificborder-bottom-left-radius
(demo).Thanks!
The text was updated successfully, but these errors were encountered: