Skip to content

output css file error of border rules #76

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

Closed
yinsang opened this issue Aug 22, 2018 · 2 comments
Closed

output css file error of border rules #76

yinsang opened this issue Aug 22, 2018 · 2 comments

Comments

@yinsang
Copy link

yinsang commented Aug 22, 2018

entry:
.aaaaaaaaaa{
border:1px solid pink;
border-top:1px solid green;
border-right:1px solid black;
}

output :
.aaaaaaaaaa{
border-color:green #000 pink pink;
border-right:1px solid pink;
border-style:solid;
border-top:1px solid pink;
border-width:1px
}
Actually,it goes wrong!
versions:
webpack 4.16.3
optimize-css-assets-webpack-plugin:5.0.0

if I code this as

{
border:1px solid pink;
border-top-color: green;
border-right-color:black;

}
It works!

@matanarbel-startapp
Copy link

matanarbel-startapp commented Aug 23, 2018

@yinsang - it's a bug in the postcss-merge-longhand optimizer of cssnano@4.0.2.
It's fixed in cssnano@4.0.5 (see the release page).
I think it's a good idea to update the cssnano dependency version.

@yinsang
Copy link
Author

yinsang commented Aug 24, 2018

@matanarbel-startapp,thanks a lot for your comment.
I also think it's a good idea to update the cssnano dependency version to the latest.@NMFR

@NMFR NMFR closed this as completed in 44d5291 Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants