reduceIdents

Renames at-rules such as @keyframes. This can be potentially unsafe if other JS/CSS files need to read this definition.

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.box {
    animation-name: fadeOut;
}
@keyframes a {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.box {
    animation-name: a;
}

⚠ Risk of breakage

This transform may be unsafe in certain situations, because of the following condition(s):

  • Changes semantics

For more information, see our advanced transforms guide.

Latest release v4.0.0-rc.0 · Changelog · Distributed under the MIT License.