Based on Jekyll Starter Tailwind.
A starter kit for using Tailwind with Jekyll that includes:
-
A Jekyll blog theme
-
A Gulpfile that does the following:
- Compiles Tailwind
- Strips out unused CSS using Tailwind's
purgeoption - Runs Autoprefixer
- Minifies your CSS
- Compiles Jekyll
- Runs Browsersync for local development
bundle installto install Ruby gemsnpm cito install npm packages listed inpackage-lock.json- Set index.html layout to home and create your posts in the _posts directory
npm run startornpm run devto compile the site with development settings and run BrowserSync
npm run build:devto compile the site with development settingsnpm run build:productionornpm run buildto compile the site for production
You can deploy your site to netlify.
Note: By default, Netlify uses jekyll build as the build command. The included netlify.toml file will override it to use npm run build.