Local development
Run Project Broadsheet on your own machine with automatic browser reload. Covers the dev server, editing workflow, and the differences between development and production builds.
Once Project Broadsheet is installed, you write and preview everything locally before pushing anything to a live server. The dev server watches your files, rebuilds on every change, and reloads the browser for you.
Start the dev server
npm start
This runs Eleventy in serve mode. It listens on http://localhost:8080 and triggers a rebuild every time you save a file inside src/.
What the dev server watches
Project Broadsheet's config registers watch targets for CSS and JS so changes to design tokens or scripts rebuild just like content changes:
- All
.md,.njk, and.11ty.jsfiles insrc/ - Every file in
src/assets/css/andsrc/assets/js/ - Every data file in
src/_data/
Passthrough copy files (images in src/assets/img/, the robots.txt, etc.) are copied to the output folder on change.
What the dev server does NOT do
Two things are skipped in dev mode for speed and are only applied to the production build:
- Pagefind search index. The index regenerates only on
npm run build, not onnpm start. - HTML minification. The
@sardine/eleventy-plugin-tinyhtmlminifier runs only in production.
Both are deliberate, both save time during iteration.
Produce a production build
npm run build
The production build writes to _site/. Every HTML file is minified, every asset is copied, and Pagefind indexes the result. This is exactly what Cloudflare Pages or any other host runs on deploy.
Typical editing workflow
- Start
npm startin a terminal and leave it running. - Open your editor on the project folder.
- Edit a Markdown file in
src/content/, a data file insrc/_data/, or a stylesheet insrc/assets/css/. - Save. Your browser refreshes within half a second.
- When the article looks right, run
git commitandgit push. The deploy pipeline picks it up from there.
What to do next
- Understand the project structure so every folder has a clear purpose.
- Configure site.json with your publication's name and sections.
- Write your first article.
Browse Support for community channels and paid support options, or book a call if you'd like me to set it up for you.