-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Using Tailwindcss without build process - Nextjs #842
Comments
@yensubldg Do you have an example of what behavior you're looking for? Like what works with If you're looking for a similar workflow to what is described in that doc you linked to, there is a roadmap item to get an equivalent to
|
When I compile with |
A quick workaround for using tailwind in dev without rebuilding the css is using the CDN.
<Head>
<title>Next.js</title>
{process.env.NODE_ENV === "development" && (
<script src="https://cdn.tailwindcss.com" />
)}
</Head>
"scripts": {
"dev": "bun dev",
"build": "npm run build:css && next build",
"build:css": "tailwindcss -o styles/globals.css",
"start": "next start"
} |
@nachoaldamav great workaround |
What is the problem this feature will solve?
Can use tailwindcss with Nextjs without the Tailwindcss CLI build process
What is the feature you are proposing to solve the problem?
Same as npm, yarn with script "dev"
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: