Skip to content

What if we arent using nodejs for a website? #2459

Answered by simonswiss
thegamerx1 asked this question in Help
Discussion options

You must be logged in to vote

Hey!

To be able to use dark mode, which is not enabled by default, you’ll need to compile Tailwind via PostCSS.

You need NodeJS to run PostCSS plugins on your machine - but if I understand your question correctly: you don’t need a Node server for the website you are building - it can be just static HTML, or anything you want.

Think of building/compiling Tailwind as a build step, that happens while you develop the site. This generates a plain CSS stylesheet, that you can use without any need for NodeJS once it’s compiled.

Hope it makes sense and is a useful answer.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by thegamerx1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants