Skip to content
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

mergeLonghand removes things it shouldn't remove #554

Closed
hudochenkov opened this issue Jul 17, 2018 · 8 comments
Closed

mergeLonghand removes things it shouldn't remove #554

hudochenkov opened this issue Jul 17, 2018 · 8 comments
Labels

Comments

@hudochenkov
Copy link

mergeLonghand removes CSS in cssnano@4.0.2.

Input:

.b {
    border-top-color: rgba(85, 85, 85, 0.95);
    border-bottom: none;
}

Output:

.b {
  border-bottom: none;
}
@vseguin
Copy link

vseguin commented Jul 17, 2018

@hudochenkov Do you have any workaround? Did you downgrade meanwhile?

@hudochenkov
Copy link
Author

@vseguin I disabled this rule:

require('cssnano')({
    preset: [
        'default',
        {
            mergeLonghand: false,
        },
    ],
}),

@alexander-akait
Copy link
Member

/cc @andyjansson

@vseguin
Copy link

vseguin commented Jul 17, 2018

@hudochenkov worked for me, thank you so much!

@andyjansson
Copy link
Contributor

Looking into this.

@alexander-akait
Copy link
Member

Done in #555

@alexander-akait
Copy link
Member

Fixed in cssnano@4.0.3

@hudochenkov
Copy link
Author

Thank you for a quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants