question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`eleventy clean` to remove output

See original GitHub issue

See 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 on Template

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:closed
  • Created 6 years ago
  • Reactions:95
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
tomglynchcommented, Sep 28, 2020

Currently this is not implemented, so the workaround is to just delete the /_site folder and re-run npx @11ty/eleventy. This works fine as long as you have not made changes in files within /_site.

1reaction
veleekcommented, May 29, 2022

I’m confused. If all enhancements are marked as closed how do we know if this is done or not?

See the referenced thread: https://twitter.com/samselikoff/status/991395669016436736

If it’s tagged with Feature and Votes Needed it hasn’t been completed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found