Skip to content

How to use tailwindcss globally with HtmlBundlerPlugin? #17

Closed Answered by webdiscus
hqw567 asked this question in Q&A
Discussion options

You must be logged in to vote

Hallo @hqw567,

here is the small example how to use the tailwindcss.

Try to use:

npm i
npm start

Each HTML site should have an own style file, e.g.
home.html - home.scss
news.html - news.scss
etc.

Each page style can use the global main.scss where should be initialized tailwindcss.

Note: tailwindcss can be initialized in a SCSS/CSS file but not in inlined style in HTML.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by hqw567
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #15 on June 19, 2023 09:19.