-
Notifications
You must be signed in to change notification settings - Fork 4
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
Tailwind standalone CLI #99
Comments
Yep, i was excited when i noticed it but was disappointed as i read on. I imagine it's a temporary limitation, but third-party plugins (either Tailwind or PostCSS) are a no-go with the new CLI. (from the blog post: "If Tailwind was the only reason you had a package.json file, this is probably going to feel like a nicer solution.") (edit for clarification: got mixed up, worded as if i were replying to an issue on tailblazor-templates) I assume future versions of the standalone CLI will have a way to pull in third-party PostCSS and Tailwind plugins, but not yet... I'm going to pin this issue because the new CLI is important and i will be keeping my eye on it, but also going to apply a "wontfix" label - for now ! |
A bit of brainstorming, in context of tailblazor-templates:
|
Hi
Thanks for the ultra quick reply.
I imagine it's a temporary limitation, but third-party plugins (either Tailwind or PostCSS) are a no-go with the new CLI.
Note that they did include their own plugins:
We’ve even bundled the latest versions of all of our first-party plugins, so if you want to use them in your project, just require them in your tailwind.config.js file like you would in a Node-based project
From their description on how they do it, there is no fundamental reason why they could not bundle other plugins (licenses permitting), but that would quickly become a “select which ones to include and maintenance nightmare. So I doubt they will do so soon.
but also going to apply a "wontfix" label - for now !
That is fine, is your prerogative of course,, I just wanted to make sure you were aware of this CLI,, that all.
Thanks again for the write-up. I will start experimenting with it very soon :-)
Best regards, Hugh
——
Hugh Maaskant
The Netherlands
… On Dec 23, 2021, at 18:49, McNerdius ***@***.***> wrote:
Yep, i was excited when i noticed it but was disappointed as i read on. I imagine it's a temporary limitation, but third-party plugins (either Tailwind or PostCSS) are a no-go with the new CLI. (from the blog post: "If Tailwind was the only reason you had a package.json file, this is probably going to feel like a nicer solution.")
I touch on it in the template itself and go into it a bit more here <https://www.tailblazor.dev/setup#scaffold> (scroll down a bit to 'Tailwind CSS scaffolding') - the 'postcss-import' PostCSS plugin is how i pull in Blazor's CSS Isolation bundle, and it has to be installed via NPM. That one's essential, but there are other handy third-party plugins as well: debug-screens <https://github.com/jorenvanhee/tailwindcss-debug-screens> is great.
I assume future versions of the standalone CLI will have a way to pull in third-party PostCSS and Tailwind plugins, but not yet... I'm going to pin this issue because the new CLI is important and i will be keeping my eye on it, but also going to apply a "wontfix" label - for now !
—
Reply to this email directly, view it on GitHub <#99 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABOUXQHWDTPPT7ZUEHCY35LUSNOJHANCNFSM5KVFU6WQ>.
You are receiving this because you authored the thread.
|
Hi
Thanks for the awesome TailBlazor explanations on the what, the how, and especially the why :-).
Have you seen this blog post: https://tailwindcss.com/blog/standalone-cli ? With it npm and all that jazz (which is outside of the normal .NET development workflow / know-how) is not needed anymore (at least for simple setups).
I wonder if you would want to include a version of the install with just the standalone CLI; it should simplify things quite a bit I think.
Thanks for reading and perhaps considering this suggestion!
The text was updated successfully, but these errors were encountered: