-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
js.Build
's externals
option does not work for /assets
#13183
Comments
I created a reproducing example here: https://github.com/rnwst/hugo-testing/tree/hugo-github-issue-13183 |
js.Build
's externals
option does not workjs.Build
's externals
option does not work for /assets
I think I understand what's happening, and I suspect that this works fine for JS packages living in |
Amazing, thank you for fixing this so quickly! Everything is working as expected on latest master. Hugo is an awesome project, thank you very much for all your hard work! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description and steps to reproduce
Under
assets
, I have a JS filescript.js
with contentsThe file
external.js
has contentsIn my template, the script is included as follows:
Actual behaviour
The
externals
option seems to have no effect, and the fileexternal.js
is included in the bundledscript.js
. The bundled file looks as follows:Expected behaviour
external.js
should not be bundled, and the import statement inscript.js
should be left untouched.What version of Hugo are you using (
hugo version
)?The text was updated successfully, but these errors were encountered: