Skip to content

feat: support array format for unitToConvert option#122

Open
huhm wants to merge 1 commit intoevrone:masterfrom
huhm:master
Open

feat: support array format for unitToConvert option#122
huhm wants to merge 1 commit intoevrone:masterfrom
huhm:master

Conversation

@huhm
Copy link
Copy Markdown

@huhm huhm commented Dec 14, 2021

No description provided.

@huhm
Copy link
Copy Markdown
Author

huhm commented Dec 14, 2021

Use Case

My Project has some code like this:

.font-14 {
  /* prettier-ignore */
  font-size: 14PX;
}

The plugin willl ignore the px convertor ,because 'px'!=='PX'. and then someday I have convert the PX too,but still let it avaliable to rolling-over,so I can't change the source. then there is a place for the unitToConvert: ["px","PX"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant