-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared units? #4
Comments
Exactly what I was going for! That said, it's been a long while since I used the plugin myself, so give it a shot and see if it still works. |
Looking at the code of this plugin, I don't see how the |
It's been so long, I honestly don't remember if I was importing a In the code, that units cache object is doing a lot of heavy lifting. I remember I would just test it and see. It might not work at all with PostCSS 8's changes. If it doesn't work, just release a new plugin or make a PR. I might even start using it again. I'm getting a little tired of writing (Another option I thought of too late for my current behemoth project, set |
If I have a central file that defines all my custom units, could this plugin grow an option to import a file so one could just use the units throughout a project?
For example, define a rem-px unit in a variables.css file:
And then anywhere else in the project simply use
5rpx;
or something like that without having to import/re-declare?The text was updated successfully, but these errors were encountered: