-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Description
Hi, thanks for this project!
Although the focus of plugin's is clearly class-names only, it would be nice if it also mangles CSS variables (custom properties) optionally.
:root {
--l-long-variable-names: 1px;
}
... {
padding: var(--l-long-variable-names)
}->
:root {
--a: 1px;
}
... {
padding: var(--a)
}Practically below change will enable it:
- classnameRegex = new RegExp(`\\\.(${opts.classNameRegExp})`, 'g');
+ classnameRegex = new RegExp(`\(?:\.?|--)(${opts.classNameRegExp})`, 'g');If you are willing to introduce this, happy to create a PR with tests.
Metadata
Metadata
Assignees
Labels
No labels