`eleventy clean` to remove output
See original GitHub issueSee https://github.com/jprichardson/node-fs-extra/blob/HEAD/docs/remove.md
- Must not delete any files not generated by the tool.
- Should probably implement as a
destroy
method onTemplate
Cheating methods that probably aren’t good enough:
- Delete output directory if input and output don’t match (or if input isn’t a directory of output)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:95
- Comments:8 (4 by maintainers)
Top Results From Across the Web
eleventy-plugin-clean - npm
This is an experimental plugin for Eleventy to keep the output directory clean. The plugin does not delete any files not created by...
Read more >Configuration — Eleventy
Controls the directory inside which the finished templates will be written to. Output Directory. Object Key, dir.output. Default, _site. Valid Options ...
Read more >How to delete page from an Eleventy website? - Stack Overflow
It's best practice to remove your output folder before the build step ... have to think about it (assuming your output directory is...
Read more >How I Set Up a Project With Eleventy - DEV Community
By default, Eleventy won't clean out files in the output directory if you move them or delete them. I Use cross-env to set...
Read more >“extensionless” urls with 11ty - BTrem
In this article, I'll explain how to make clean urls with Apache, Browsersync, ... That means you can remove the url suffix if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Currently this is not implemented, so the workaround is to just delete the
/_site
folder and re-runnpx @11ty/eleventy
. This works fine as long as you have not made changes in files within/_site
.See the referenced thread: https://twitter.com/samselikoff/status/991395669016436736
If it’s tagged with Feature and Votes Needed it hasn’t been completed.