dojo / cli-build-widget

Command for building Dojo widgets
Other
6 stars 17 forks source link

Add basic post-css plugin to convert color to color-mod #43

Closed agubler closed 5 years ago

agubler commented 6 years ago

Moving to postcssPresetEnv meant that using the color function is no longer supported - the plugin that postcssPresetEnv leverages uses a function called color-mod.

This change provides a small plugin that runs before the color-mod-function plugin in postcssPresetEnv to convert uses of color( to color-mod(.

The new plugin is actually better, as it will use resolved variables when it executes, which will allow us to leave un-computed css variables for non-legacy builds.