Skip to content

Support @layer keyword #1242

Description

@earlAchromatic

Environment

  • clean-css version: 5.3.1
  • node.js version: 16
  • operating system: MacOS

Configuration options

using grunt-contrib-cssmin (no config)

Input CSS

@layer customlayername {
    .custom-rule {
        background: red;
    }
}

Actual output CSS

@layer customlayername {
        background: red;
}

And error:

Unexpected '}' at .tmp/css/app.css.,Unexpected '}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions