everywall / ladder

Selfhosted alternative to 12ft.io. and 1ft.io bypass paywalls with a proxy ladder and remove CORS headers from any URL
GNU General Public License v3.0
4.29k stars 169 forks source link

improvement: Use Tailwind CLI to build stylesheet instead of using Play CDN #36

Closed joncrangle closed 7 months ago

joncrangle commented 7 months ago

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 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.