Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with incremental build #4

Open
mvsde opened this issue May 30, 2022 · 0 comments
Open

Incompatible with incremental build #4

mvsde opened this issue May 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mvsde
Copy link
Member

mvsde commented May 30, 2022

Eleventy provides the --incremental flag for builds. This is handy in serve mode for local development, because it skips unchanged files.

This plugin clears the whole build folder, not only the assets folder:

fs.rmSync(path.join(process.cwd(), buildFolder), {
recursive: true,
force: true,
});

Since Eleventy “thinks” all generated HTML files are still there, it only generates the currently changed one. All others are removed by the rm mentioned above.

Documentation for incremental mode in the Eleventy docs.

@mvsde mvsde added the bug Something isn't working label May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant