How I Run Eleventy (Itâs Complicated?)
Published on April 18, 2025, filed under Development (RSS feed for all categories).
I love Eleventy. I use Eleventy for a few sites. But how I work with Eleventy may not reflect the most usual development and export setup. Here are the two key lines, for Frontend Dogma:
alias fd="cd ~/Projects/frontenddogma.com/; DEBUG=Eleventy* npx @11ty/eleventy --serve --incremental --output=../exports/local/frontenddogma.com/â alias fdd=âcd ~/Projects/frontenddogma.com/; rm -rf ../exports/local/ frontenddogma.com/; DEBUG=Eleventy* npx @11ty/eleventy âincremental âoutput=../exports/local/ frontenddogma.com/; rsync -av âquiet âdelete ../exports/local/ frontenddogma.com/ ../exports/frontenddogma.com/â
You will be with me on using aliases, Iâm sure. But you may wonder about what else is going on. Let me share my thinkingâmaybe thereâs something here that you like, or you can challenge or correct me, which is something Iâd like.
-
The alias names: âfdâ stands for âFrontend Dogma,â and resembles my convention for shortcuts to run projects locally. âfddâ stands for⊠âFrontend Dogma something,â and I honestly forgot about how I landed on that âdâ (which I use for other project exports, too) đ
-
The export folder: Iâm choosing one in a parallel folder (âexports,â actually another Git repo), because I like to have the export under version control so that I can review changes and fall back on previous exports, but in a central location with other exports so that itâs easier to exclude exports from editor indexing (which helps performance in WebStorm). This has the added advantage that if the folder history ever becomes too large (whether for me or for GitHub), itâs easy to delete and swap out the repo.
-
DEBUG=Eleventy*
: This runs Eleventy in debug mode, which I like so as to monitor possible performance bottlenecks. (I also like all the character sequences run through the terminal.) -
--output=../exports/local/
: This builds the Eleventy site under a special âlocalâ folder not under version control (but .gitignored). This is a recent change because always deleting Eleventy build folders doesnât seem necessary; here, in this non-versioned, unindexed parent folder, they do not hurt.frontenddogma.com/ -
rm -rf ../exports/local/
: On exporting, this deletes anything that was previously built. This is necessary because Eleventy doesnât (yet?) delete files in the export directory, which would then land in production again.frontenddogma.com/ -
rsync -av --quiet --delete ../exports/local/
: Also on exporting, this syncs the âlocalâ non-versioned build directory with the versioned directory that hosts the live site. This is a proven setup in that I donât want to risk temporary development work to go live, and prefer exports to be deliberate, distinct actions. Using rsync is also a recent change, as for a site as large as Frontend Dogma, I suspect it to be faster than moving/copying files, and lighter on SSDs (I wonât die if I err).frontenddogma.com/ ../exports/frontenddogma.com/
In short, the reasons for and benefits of this setup, to me, are:
- Aliases for quick builds and exports
- Debug mode for detailed information on Eleventy activity
- Separate build and export folders to be deliberate about production exports
- A centralized export location that is versioned to compare changes, but easy to exclude from editor indexing
The setup works for me. Please let me know your thoughts, especially if you think Iâm missing something. Perhaps Iâm making things complicated. Cheers!
About Me

Iâm Jens (long: Jens Oliver Meiert), and Iâm a web developer, manager, and author. Iâve worked as a technical lead and engineering manager for small and large enterprises, Iâm an occasional contributor to web standards (like HTML, CSS, WCAG), and I write and review books for OâReilly and Frontend Dogma.
I love trying things, not only in web development and engineering management, but also in other areas like philosophy. Here on meiert.com I share some of my experiences and views. (I value you being critical, interpreting charitably, and giving feedback.)
Read More
Maybe of interest to you, too:
- Previous: 5 Ways to Reduce HTML File Size on Your Website, Step 0
- More under Development
- More from 2025
- Most popular posts
Looking for a way to comment? Comments have been disabled, unfortunately.

Get a good look at web development? Try WebGlossary.infoâand The Web Development Glossary 3K. With explanations and definitions for thousands of terms of web development, web design, and related fields, building on Wikipedia as well as MDN Web Docs. Available at Apple Books, Kobo, Google Play Books, and Leanpub.