eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

Not able to kill the process during build

Open groenroos opened this issue 1 year ago • 3 comments

Operating system

macOS Sonoma 14.4.1

Eleventy

3.0.0

Describe the bug

While Eleventy is building the site, it's not possible to kill the process with Ctrl-C. Only after the build is complete, will the Ctrl-C take effect and Eleventy exits with code 1.

With a large site where build times are in the tens of seconds, this can get frustrating, especially when you already know the build will fail (e.g. because of missing npm dependencies when switching git branches).

Reproduction steps

  1. Start a build of a large site
  2. Wait until the templates start processing (i.e. after any async data has been fetched)
  3. Try to kill the process with Ctrl-C
  4. The process will not die until after the build is complete

Expected behavior

The build should be interrupted and the process should exit instantly.

Reproduction URL

No response

Screenshots

No response

groenroos avatar Oct 29 '24 14:10 groenroos