Skip to content

Make tailwindcss an optional peerDependency #30

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

Closed
wants to merge 1 commit into from

Conversation

kevinschweikert
Copy link

We are using this package in an Elixir Phoenix project with the standalone tailwind cli. When installing this via npm, we import the whole dependency tree from tailwind. Would it be possible, to make this optional, so that standalone projects, can be kept lean?

@adamwathan
Copy link
Member

Hey! You shouldn't even need to install this plugin to use it with the standalone CLI — we bundle all first-party plugins directly into the standalone build so you can require them without installing them:

https://github.com/tailwindlabs/tailwindcss/blob/main/standalone-cli/standalone.js

Does that work for you?

@kevinschweikert
Copy link
Author

Oh, totally missed that! As you said, it works without installing this package. Thank you for the quick reply and your help! Sorry to have taken your time!

@adamwathan adamwathan closed this Sep 25, 2024
@adamwathan
Copy link
Member

Great glad that works!

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