postcss-mixins icon indicating copy to clipboard operation
postcss-mixins copied to clipboard

Option to ignore unresolvable mixins

Open gossi opened this issue 6 years ago • 1 comments

Given there are multiple configurations for postcss that apply for your project, it can happen that postcss-mixins runs multiple times but the second call has the configuration for the first iteration... then the build can fail, e.g. if the mixin is not resolvable. What would be nice is an option to ignore them, similarly to what postcss-advanced-variables does.

There is an option how to handle unresolved variables, see unresolved option.

My suggestion is to add this to postcss-mixins, too.

gossi avatar Dec 16 '19 10:12 gossi

Sure. Feel free to send PR.

I do not see a problem with this extra option, but to be honest, it look like a hack. We can add it as a quick fix, but it will be a good idea to think about refactoring to fix the initial problem of multiple plugins in the chain.

ai avatar Dec 17 '19 05:12 ai