A bare bones Jekyll site which comes preconfigured to use Tailwind CSS for styling.
š Try the demo here.
Ensure Ruby and npm are installed then setup the project:
npm run setup
npm start
Open your page on localhost:4000. Parcel and Jekyll will run concurrently so file changes update automatically.
:warning: CSS might not render on the very first load. :warning:
Simply open
index.css
, save the file to trigger an update, then refresh your browser.Jekyll and Parcel run concurrently in dev builds so the CSS may not generate in time. This only happens once (when the file doesn't exist) and is not an issue in prod builds.
npm run build
Tailwind CSS is minified and Jekyll outputs the site to the _site
folder.
Deploy statically (e.g. Netlify) with the following build settings:
npm run build
_site
"my" + "-class"
. Use full names like "my-class"
instead._site/
folder as this folder is not guaranteed to exist when deployed to a server.Contact me by posting an issue. I'll be happy to help š