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.
-
Make sure you have Node.js installed.
-
You can either clone the repo, fork it, download it or use it as a template.
-
Then, in the root folder, run:
npm install
which will install all the dependencies.
-
To build the site, run:
npm run dev
-
Go to http://localhost:8080/ (or whatever Browsersync gives you as the local access URL). Hopefully you should now see a functioning website.
-
Work your magic! build something cool, then...
-
when you're ready to deploy somewhere, run:
npm run deploy
which will minify everything.
-
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.