Skip to content

Fix plugin.withOptions() when no config function is passed #1293

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

Merged
merged 1 commit into from
Jan 4, 2020
Merged

Fix plugin.withOptions() when no config function is passed #1293

merged 1 commit into from
Jan 4, 2020

Conversation

benface
Copy link
Contributor

@benface benface commented Jan 3, 2020

I'm converting a plugin to Tailwind 1.2's new plugin definition syntax. It takes options so I use plugin.withOptions(), but it doesn't need any config since it only adds variants. When I omit the second argument of plugin.withOptions(), I get the following error:

TypeError: configFunction is not a function

This PR fixes that, allowing to pass no config function to plugin.withOptions().

@adamwathan adamwathan merged commit ac21390 into tailwindlabs:master Jan 4, 2020
@adamwathan
Copy link
Member

Thanks!

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 this pull request may close these issues.

2 participants