-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
11ty.js layout with required scripts is not updating #1435
Comments
Maybe duplicate of this #1312 |
I tried this out but updated to version |
I'm also having this issue! Doesn't seem to be a duplicate of #1312 since that one has been closed but this problem persists. |
This is almost certainly solved by the new dependency mapper in 3.0 but we can circle back after 3.0 has shipped |
I'm on 11ty 3.0 right now and am seeing this exact issue still @zachleat . I'm also wondering if it's less 11ty fault and more about browser caching? |
Confirmed that the provided test case works in v3.0.0 on Windows. If other folks on this issue are seeing a similar issue persist using v3.0.0, please open a new issue! If the original poster is still seeing this issue persist on v3.0.0—please add a comment here and we’ll reopen! |
Describe the bug
If you make changes in javascript files that are import by the
required
in layout, these changes are not displayed until the build process is restarted.To Reproduce
Steps to reproduce the behavior:
npm i && npm start
_includes/test.11ty.js
Expected behavior
Changes in the files that are attached inside the template should result in a change in the resulting html. How it works if you change the file
_includes/base.11ty.js
directly.Environment:
Additional context
In a real project, such a connection is used to combine several small parts into one large template (Live code)
The text was updated successfully, but these errors were encountered: