yarn install
Webpack and Eleventy must run simultaneously. Use the following:
yarn dev
yarn add --dev postcss
yarn remove postcss
yarn run
List all available scripts from package.json.yarn build
Production build (for Netlify).yarn build:serve
Production build plus web server.yarn dev
For quick-turnaround development (Webpack watch and Eleventy server).
Provides sequential and parallel execution of scripts.
run-s
runs steps sequentially.run-p
runs steps in parallel.run-s -l
prints a label on each output line.
The website content, processed by Eleventy. Contains Nunjucks templates, layouts, and included templates.
Processed by Webpack. Contains CSS, JS, and images.
styles
basic.scss
Styles in addition to Tailwind.styles.scss
Setup Tailwind and import other styles.
controllers
Stimulus controllers are bundled and included.images
All site images. Copied to public/assets/images.
The Eleventy output directory. Delivered by the Netlify web server. Contains the site's public files.
- @11ty/eleventy-navigation
Webpack generates main.js
and main.css
.
These assets are then inserted into html_head.njk
.
- Collections are defined by
tags
. - For a
blog
collection,blog/blog.json
can list collection attributes (like tags). - Using Data. Eleventy Documentation
- Eleventy Origin: Thanks, Scott, for a good Eleventy starting point.
- Hotwire, Turbo, Stimulus: Thanks, Basecamp, for the Javascript libraries, documentation, and examples.
- Sample Tailwind Template: Thanks, Colm, for the landing page template.
- Tailwind Blog Template: Thanks, Ross, for the blog template.
- Tailwind UI: Thanks, Tailwind, for the preview examples of your full Tailwind UI toolkit.