Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to ignore unresolvable mixins #104

Open
gossi opened this issue Dec 16, 2019 · 1 comment · May be fixed by salsify/ember-css-modules#171
Open

Option to ignore unresolvable mixins #104

gossi opened this issue Dec 16, 2019 · 1 comment · May be fixed by salsify/ember-css-modules#171

Comments

@gossi
Copy link

gossi commented Dec 16, 2019

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.

@ai
Copy link
Member

ai commented Dec 17, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants