You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inadvertently, some of the CSS / JS assets I wanted to build via Vite ended up caught in an .eleventyignore path pattern.
This wasn't noticed immediately though, because when initially running the build (whether for production, or with --serve) these assets will still build as normal.
But, when using --serve, these assets will not be watched for changes, and thus, never get re-built after the initial build, until Eleventy is terminated and restarted.
I'm not entirely sure whether the ideal behaviour for assets matching .eleventyignore patterns would be to be always built, or to never be built at all... but the current behaviour of them building successfully once, and then never again, definitely feels undesirable to me.
The text was updated successfully, but these errors were encountered:
Could you please give a minimal reproduction? It's really hard guessing your setup. I understand the main problem, but there are many variables like how are the paths setup, how does it play with passthrough copy, which version are you on...
Sure! This one's actually pretty easy, I was able to reproduce it in the example/ folder;
Create .eleventyignore in the example/ folder, with src/assets/ as the contents
Run npx @11ty/eleventy --serve
Make any visible change in src/assets/main.css
The CSS will not be rebuilt
Terminate and restart npx @11ty/eleventy --serve
The CSS will be built with the new change
KiwiKilian
changed the title
Vite assets in .eleventyignore are built once, but not watched for changes
Files which are both within .eleventyignore and addPassthroughCopy are copied initially but not updated
Nov 12, 2024
Thanks! This is happening without the plugin being involved. Not sure what's the best approach, rather not have the files ever copied or throwing an error?
Inadvertently, some of the CSS / JS assets I wanted to build via Vite ended up caught in an
.eleventyignore
path pattern.This wasn't noticed immediately though, because when initially running the build (whether for production, or with
--serve
) these assets will still build as normal.But, when using
--serve
, these assets will not be watched for changes, and thus, never get re-built after the initial build, until Eleventy is terminated and restarted.I'm not entirely sure whether the ideal behaviour for assets matching
.eleventyignore
patterns would be to be always built, or to never be built at all... but the current behaviour of them building successfully once, and then never again, definitely feels undesirable to me.The text was updated successfully, but these errors were encountered: