-
Notifications
You must be signed in to change notification settings - Fork 73
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
Write to .js instead of .json #24
Comments
To handle the specific use case you're after I created this https://github.com/jouni-kantola/inline-chunk-manifest-html-webpack-plugin, @noahgrant. It consumes the webpack manifest JSON file when building (note issue: #26). Now that I'm looking around I noticed there are a couple of PR's for |
Thanks @jouni-kantola, but what I actually want is the flexibility to write the result to file instead of assuming that I want to inline it. I've forked this repo and made that functionality for myself, but I haven't seen maintainers very responsive here, so I haven't opened a PR yet. |
Hi! Just following up; any interest here for adding this? I can cut a PR... |
I would like this too! I've opened a PR here: #37 which makes the emitted file prepend window.manifestVariable to the file so you can drop it into any page. |
I love using this plugin to keep my core chunk from changing anytime any of the child chunks change. However, I feel like there's a gap between easy plug-and-play:
manifestVariable
variable.manifestVariable
variable....but we still have to manually attach the json to the global
manifestVariable
variable ourselves.It'd be nice to have an option where instead of printing out the json to a .json file, it prints it out to .js file as:
Then all we would need to do is attach the script tag or inline it. Would that make sense?
The text was updated successfully, but these errors were encountered: