We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Reference: https://discourse.gohugo.io/t/37084
Hugo does not currently associate the .jsm or .mjs extensions with the application/javascript media type.
.jsm
.mjs
application/javascript
When using resources.GetRemote, our content/extension validation is system-dependent, where the local MIME database is loaded and read.
resources.GetRemote
For example, on the OP's system, and on mine:
$ cat /usr/share/mime/globs2 | grep javascript 50:application/javascript:*.jsm 50:application/javascript:*.mjs 50:application/javascript:*.js
Hugo ends up with the first one on the list.
The text was updated successfully, but these errors were encountered:
Update the application/javascript media type
1385a63
Add jsm and mjs extensions. Closes gohugoio#9483
3036d0a
Add jsm and mjs extensions. Closes #9483
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.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Reference: https://discourse.gohugo.io/t/37084
Hugo does not currently associate the
.jsm
or.mjs
extensions with theapplication/javascript
media type.When using
resources.GetRemote
, our content/extension validation is system-dependent, where the local MIME database is loaded and read.For example, on the OP's system, and on mine:
Hugo ends up with the first one on the list.
The text was updated successfully, but these errors were encountered: