-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Make it works with .mjs files #1126
Comments
Sure - could you please open a pull request? |
@levvsha any updates on this issue? |
@levvsha I don't sure that closing this issue now is good idea, because PR is not merged yet |
@artemirq Reopened. |
Can you please update #1207 so we can merge it? |
@jantimon Sure |
Thanks al lot @artemirq - do you think we should also add unit tests? |
@jantimon Thanks. I don't sure |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Great approach with compiling of mjs files for modern browsers is described in this article. I faced with a problem when I specify
output.filename
in a webpack configuration file as a file with.mjs
extension:Webpack is sucessfully compile all files but html-webpack-plugin does not append the generated files to the template (
htmlWebpackPlugin.files.js
is an empty array). It would be great to make it works with.mjs
output files by default or with some flag in the configuration.Expected result: the string
<script type="module" src="main.mjs"></script>
is appended in the template.The text was updated successfully, but these errors were encountered: