You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All rework plugins are used like css.use(colors());
but this one is: css.use(color);
This breaks an undocumented convention and would be nice if it would adhere to it.
The text was updated successfully, but these errors were encountered:
It's not really an "undocumented" convention.
Ex: rework-calc doesn't return a function.
Plugins that return a function are plugins that need (or accept) option(s) or that need a specific scope (for keeping internal stuff in memory).
Like rework-calc, it's not needed to return a function because this plugin only does a simple conversion.
That being said, I plan to add preserve option (like I did for rework-vars) so this plugin can act as a fallback, so you will be probably happy with that :) (-> need for option -> module is a function)
All rework plugins are used like
css.use(colors());
but this one is:
css.use(color);
This breaks an undocumented convention and would be nice if it would adhere to it.
The text was updated successfully, but these errors were encountered: