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

Cannot find "/dist/forms.min.css" in @tailwindcss/forms@0.5.0 #110

Closed
ishaiavrahami opened this issue Mar 6, 2022 · 4 comments
Closed

Comments

@ishaiavrahami
Copy link

What version of @tailwindcss/forms are you using?

latest

What version of Node.js are you using?

none

What browser are you using?

chrome

What operating system are you using?

macos

Reproduction repository

none

Describe your issue

Hello, im using in my HTML the following cdn https://unpkg.com/@tailwindcss/forms@latest/dist/forms.min.css and it doesn't seem to be rendering the CSS. Is it possible to maintain the Forms CSS CDN?

@authcompanion
Copy link

authcompanion commented Mar 12, 2022

+1 - was depended on the forms css cdn as well and now broken due to 404.
Needing to pin to earlier version. This version does not 404 - https://unpkg.com/@tailwindcss/forms@0.4.0/dist/forms.min.css

@reinink
Copy link
Member

reinink commented Mar 25, 2022

Hey there!

The CDN version was removed in v0.5.0, since this version was designed to be used with Tailwind CSS v3, which now also does not ship with a CDN version now that the JIT engine has replaced the previous AOT (ahead-of-time) engine.

Tailwind CSS v3 is intended be used as part of a build process, and the forms plugin works the same way, so that's what I'd recommend doing if at all possible.

Of course, you're welcome to continue using the previous v0.4.0 CDN version, as @authcompanion suggested:

https://unpkg.com/@tailwindcss/forms@0.4.0/dist/forms.min.css

Also, I'd recommend not using the @latest flag when including an asset from a CDN, as it can change at anytime and break your app. It's much better to use a fixed version, as it will never change.

Hope that helps! 👍

@reinink reinink closed this as completed Mar 25, 2022
@authcompanion
Copy link

A feat request for tailwind css v4 - works without build process 👍 It is the future!

@ishaiavrahami
Copy link
Author

Update - Use the new <script src="https://cdn.tailwindcss.com?plugins=forms"></script> to render tailwind + forms plugin

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

No branches or pull requests

3 participants