Skip to content

reopen border with rpx #1073

@NewFuture

Description

@NewFuture

Environment

  • clean-css version - npm ls clean-css: 4.2.1
  • node.js version - node -v: 10.x
  • operating system: windows/liunx

Input CSS

.c{
  border: 2rpx solid #ddd;
}

Actual output CSS

.c{
  border: solid #ddd;
}

Expected output CSS

.c{
  border: 2rpx solid #ddd;
}

related #882

As we know that rpx is not a standard css unit,
but it's a valid unit in wxss and some processors.

How to keep it in the clean result?

  1. a config to ignore the unknown unit?
  2. extend units config to support user-defined unit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions