Cssnano: mergeLonghand removes things it shouldn't remove

Created on 17 Jul 2018  路  8Comments  路  Source: cssnano/cssnano

mergeLonghand removes CSS in [email protected].

Input:

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

Output:

.b {
  border-bottom: none;
}
bug

Most helpful comment

@vseguin I disabled this rule:

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

All 8 comments

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

@vseguin I disabled this rule:

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

/cc @andyjansson

@hudochenkov worked for me, thank you so much!

Looking into this.

Thank you for a quick fix!

Was this page helpful?
0 / 5 - 0 ratings