This PR uses the Tailwind CLI and a pnpm script to build and minify a css stylesheet with the utility classes that are used in form.html. It uses a Github Action that runs if there is a push changing form.html and commits the generated styles.css to the /cmd folder. The Go embed package and a get handler serve the generated stylesheet at the /styles.css route.
I added the output stylesheets to .gitignore so that the Github Action is responsible for handling stylesheet compilation, minification and commit. The Github Action may need to be run manually for the first time to generate the initial styles.css.
Ref: Issue #34 : Proposal: Use Tailwind CLI instead of play CDN
This PR uses the Tailwind CLI and a pnpm script to build and minify a css stylesheet with the utility classes that are used in
form.html
. It uses a Github Action that runs if there is a push changingform.html
and commits the generatedstyles.css
to the/cmd
folder. The Go embed package and a get handler serve the generated stylesheet at the/styles.css
route.I added the output stylesheets to
.gitignore
so that the Github Action is responsible for handling stylesheet compilation, minification and commit. The Github Action may need to be run manually for the first time to generate the initialstyles.css
.