Replies: 3 comments 1 reply
-
If you specify a purge option, unused CSS wont' be generated. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@dance2die , the issue is that I have |
Beta Was this translation helpful? Give feedback.
1 reply
-
@dance2die , @adamwathan , thank you! Will try it out 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on converting my website to use TailwindCSS. Previously, I designed the website around MaterializeCSS.
I don't use any of the popular frameworks mentioned in Installation - Integration Guides, just pure HTML for the most part.
The caveat is the HTML is in Golang
html/template
format:build process
First, install prerequisites. The
-D, --save-dev
add the packages todevDependencies
:Next, create PostCSS config file (
postcss.config.js
):Then, create Tailwind CCS config file (
tailwind.config.js
):Create directory for
tailwindcss
:Add
./mods/tailwindcss/styles.css
:Then, generate
Question
Currently, the output css file is 3.9M.
What do I need to do to make
npx tailwindcss
aware of my.template
files and prune unnecessary CSS?Beta Was this translation helpful? Give feedback.
All reactions