Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrissy-dev/eleventy-web-starter
Eleventy Web Starter is a lightweight Eleventy boilerplate utilising, ESBuild Tailwind and PostCSS.
https://github.com/chrissy-dev/eleventy-web-starter
css eleventy html netlify postcss static-site-generator tailwind-css webpack
Last synced: about 1 month ago
JSON representation
Eleventy Web Starter is a lightweight Eleventy boilerplate utilising, ESBuild Tailwind and PostCSS.
- Host: GitHub
- URL: https://github.com/chrissy-dev/eleventy-web-starter
- Owner: chrissy-dev
- License: mit
- Created: 2019-02-14T14:35:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-07T20:15:04.000Z (5 months ago)
- Last Synced: 2024-06-23T04:58:08.160Z (3 months ago)
- Topics: css, eleventy, html, netlify, postcss, static-site-generator, tailwind-css, webpack
- Language: Nunjucks
- Homepage: https://eleventywebstarter.netlify.app
- Size: 1.3 MB
- Stars: 314
- Watchers: 6
- Forks: 33
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Eleventy Web Starter
Eleventy · Tailwind CSS · HTML · CSS · Javascript
## Contents
- [Project overview](#project-overview)
- [Getting started](#getting-started)
- [Install dependencies](#install-dependencies)
- [Working locally](#working-locally)
- [Creating a production build](#creating-a-production-build)
- [Deployment](#deployment)
- [Credits](#credits)---
## Project Overview
- The project uses [Eleventy](https://11ty.dev) as a static site generator
- Default templating is [Nunjucks](https://mozilla.github.io/nunjucks/) (can be changed)
- PostCSS set up to handle:
- TailwindCSS
- CSS Imports
- Autoprefixer
- PurgeCSS to remove unused CSS (set up for TailwindCSS by default) in production
- HTML minified in production
- CSS inlined and minified in production
- [esbuild](https://esbuild.github.io/) used to bundle and minify scripts
- Document `` crafted using [htmlhead.dev](https://htmlhead.dev)---
## Getting Started
### Install dependencies
```
npm install
```### Working locally
Starts watch tasks to compile when changes detected```
npm start
```### Creating a production build
Minify HTML, minify JS, inline and minify CSS.```
npm run build
```---
## Deployment
You can host the production output on any web server or service you like and upload it via any method, it'll work.
If you don't have an existing place to host your site you should have a look at [Netlify](https://www.netlify.com), I can't recommend it enough. To get started you can hit the button below.
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/chrissy-dev/eleventy-web-starter)
---
#### Credits
- [Eleventy](https://11ty.dev)
- [TailwindCSS](https://tailwindcss.com/)
- [PostCSS](https://github.com/postcss)
- Autoprefixer
- PostCSS Import
- [esbuild](https://esbuild.github.io/)
- [Luxon](https://moment.github.io/luxon/)
- [NPM Run All](https://www.npmjs.com/package/npm-run-all)
- [HTML Minifier](https://www.npmjs.com/package/html-minifier)