
π Auto-Compile FSCSS to CSS with GitHub Actions + GitHub Pages
When working with FSCSS, itβs useful to have your styles compiled automatically whenever you push changes. In this guide, weβll set up a workflow that: β’ Compiles .fscss β .css automatically β’ Commits the compiled CSS β’ Deploys a demo page with GitHub Pages The result is a simple CI/CD pipeline for your styles. You can see the complete example repository here: π https://github.com/fscss-ttr/clipfscss Live demo: π https://fscss-ttr.github.io/clipfscss/demo Project Structure Hereβs the structure used in the example project. repo/ β βββ .github/workflows β βββ compile.yml β βββ pages.yml β βββ src/ β βββ style.fscss β βββ dist/ β βββ f.css β βββ demo/ β βββ index.html β βββ package.json βββ package-lock.json Explanation "src/" β FSCSS source files "dist/" β compiled CSS output "demo/" β static example page ".github/workflows/" β automation scripts Install FSCSS Install via npm. npm install -g fscss Your package.json should look like this: { "dependencies" : { "fscss" : "^1.1.17" }, "scrip
Continue reading on Dev.to
Opens in a new tab



