/eleventy-boilerplate

A minimal eleventy boilerplate that comes with Vite (via the Slinkity plugin), Tailwind and Prettier

Primary LanguageNunjucksMIT LicenseMIT

Minimal Eleventy Boilerplate

Minimal Eleventy boilerplate that comes with a few things attached:

  • Vite via the Slinkity plugin for fast HMR-enabled dev experience and optimized bundling of files in production.
  • Tailwind for simple utility-first CSS authoring.
  • Prettier for automated code formatting (configured to support .njk files in VS Code by associating them with .html files).

Optional features can be found in repository branches:

  • Typescript to add static typing for type safety and type references
  • Image Plugin for build-time image optimizations

Install dependencies and start development server

npm i
npm run dev

The development site will run on localhost:8080 by default.

Build for production

npm run build

The production build will appear in the _site folder by default, ready to be hosted in any static-site host.

npm run preview

If you want to preview the build output, this will build the site and then serve it immediately on localhost:8080 by default.

📝 License

This project is MIT licensed.