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.
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.