Skip to content

cssnano not running with postcss-cssnext #85

@elvingm

Description

@elvingm

Sometimes when writing nested styles with sugarss some of the postcss plugins that are meant to run with cssnext don't seem to have their intended effect.

#footer
  & .cuervo-links
    & .link
      margin-right: 15px

      & a
        text-decoration: none

Because of this, empty CSS blocks like this #footer .cuervo-links {} end up in the output.
cssnano helps with this which is included in both postcss-cssnext and css-loader, but they don't seem to catch this. I could include cssnano in the plugins, but then I get a duplicate plugin warning.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions