postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
597 stars 77 forks source link

Non-passive change for ImportFrom Priority #231

Open emilyrohrbough opened 3 years ago

emilyrohrbough commented 3 years ago

Summary

Recently the importFrom property was given maximum priority in #222 to resolve #215. The change in priority was no-passive and is breaking the theme strategy in our builds. We need to lock in at 9.1.1 to maintain our applications theming.

Proposed Solution

Is it possible to revert this change and add an additional property to specify the priority order? The default order would then be the import order before #222 and if the importFrom needed precedence, this can be indicated via configuration.

Antonio-Laguna commented 2 years ago

Fixed as of 12.1.0

romainmenke commented 2 years ago

@emilyrohrbough Took a while but there is a new flag (overrideImportFromWithRoot: true) to control this behaviour.