Feature Request: Automatically Include custom.js Without Editing base.11ty.js #1030
lucafalefoto
started this conversation in
Development
Replies: 1 comment
-
Thank you @lucafalefoto. This is a very thoughtful suggestion, which I have added to our Issue Board as #1032 for further conversation with our developers. Keep an eye there for updates. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
First of all, thank you for the great work on Quire—it's a fantastic tool.
I wanted to suggest a small but meaningful improvement: currently, if I want to use a
custom.js
file (just like we do withcustom.css
), I need to manually modify thebase.11ty.js
template and insert:<script src="/_assets/javascript/custom.js"></script>
right before the closing
</body>
tag.However, this approach has a couple of drawbacks:
base.11ty.js
will likely be overwritten during updates or upgrades, making this a fragile solution.custom.css
out of the box, and I would expectcustom.js
to be treated similarly—as a default part of the customizable frontend assets.It would be great if
custom.js
were automatically included, so we could easily extend functionality without touching the core templates.Thanks for considering this!
Beta Was this translation helpful? Give feedback.
All reactions