Add support for using .mjs files in extra_javascript by squidfunk · Pull Request #3232 · mkdocs/mkdocs · GitHub
Skip to content

Add support for using .mjs files in extra_javascript#3232

Closed
squidfunk wants to merge 1 commit into
masterfrom
feature/add-mjs-support
Closed

Add support for using .mjs files in extra_javascript#3232
squidfunk wants to merge 1 commit into
masterfrom
feature/add-mjs-support

Conversation

@squidfunk

Copy link
Copy Markdown
Contributor

Fixes #3164. I've already added support for .mjs in Material for MkDocs in squidfunk/mkdocs-material@530f844. MkDocs doesn't complain when .mjs is used, but with the PR proposed here, those files are properly treated as JavaScript files, which some plugins may rely on. Once this is merged, I'll update the built-in plugins (.e.g the privacy plugin).

I've also adapted the built-in themes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add way to treat .mjs files as JavaScript

1 participant