Skip to content

A simple static website starter using eleventy and tailwind, with live reloading of everything

License

Notifications You must be signed in to change notification settings

tomarney/11ty-tailwind-postcss-starter

Repository files navigation

Static website template (Eleventy, tailwindcss, postcss)

A simple static website starter, compiled by Eleventy with nunjucks and with Tailwind CSS (in just-in-time mode) as a PostCSS plugin with autoprefixer.

Getting started

  1. Make sure you have Node.js installed.

  2. You can either clone the repo, fork it, download it or use it as a template.

  3. Then, in the root folder, run:

    npm install

    which will install all the dependencies.

  4. To build the site, run:

    npm run dev
  5. Go to http://localhost:8080/ (or whatever Browsersync gives you as the local access URL). Hopefully you should now see a functioning website.

  6. Work your magic! build something cool, then...

  7. when you're ready to deploy somewhere, run:

    npm run deploy

    which will minify everything.

  8. Optionally, deploy to Netlify - the config file is included in this project

PS: There's also npm run purge to remove all the build files.