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? 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
The webpack plugin suggested in the readme creates a different structure than minipack expects.
What is being generated
{ "entrypoints": { "main": { "assets": { "js": [ "static/js/bundle.js", "static/js/0.chunk.js", "static/js/main.chunk.js" ], "js.map": [ "static/js/bundle.js.map", "static/js/0.chunk.js.map", "static/js/main.chunk.js.map" ] } } }, "main.js": "static/js/main.chunk.js", "main.js.map": "static/js/main.chunk.js.map", "runtime-main.js": "static/js/bundle.js", "runtime-main.js.map": "static/js/bundle.js.map", "static/js/0.chunk.js": "static/js/0.chunk.js", "static/js/0.chunk.js.map": "static/js/0.chunk.js.map", "static/js/1.chunk.js": "static/js/1.chunk.js", "static/js/1.chunk.js.map": "static/js/1.chunk.js.map", "static/media/logo.svg": "static/media/logo.6ce24c58.svg" }
What minipack expects:
{ "entrypoints": { "main": { "js": [ "static/js/bundle.js", "static/js/0.chunk.js", "static/js/main.chunk.js" ], "js.map": [ "static/js/bundle.js.map", "static/js/0.chunk.js.map", "static/js/main.chunk.js.map" ] } }, "main.js": "static/js/main.chunk.js", "main.js.map": "static/js/main.chunk.js.map", "runtime-main.js": "static/js/bundle.js", "runtime-main.js.map": "static/js/bundle.js.map", "static/js/0.chunk.js": "static/js/0.chunk.js", "static/js/0.chunk.js.map": "static/js/0.chunk.js.map", "static/js/1.chunk.js": "static/js/1.chunk.js", "static/js/1.chunk.js.map": "static/js/1.chunk.js.map", "static/media/logo.svg": "static/media/logo.6ce24c58.svg" }
The plugin nests entries in an additional assets key which isn't where the Manifest class looks - https://github.com/nikushi/minipack/blob/master/lib/minipack/manifest.rb#L53-L57
assets
Manifest
The text was updated successfully, but these errors were encountered:
Add lookup_pack config option
22bffd8
Fixes nikushi#39 It allows to define a custom path for pack lookup
I've prepared a pull request that proposes a way to solve this.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The webpack plugin suggested in the readme creates a different structure than minipack expects.
What is being generated
What minipack expects:
The plugin nests entries in an additional
assets
key which isn't where theManifest
class looks - https://github.com/nikushi/minipack/blob/master/lib/minipack/manifest.rb#L53-L57The text was updated successfully, but these errors were encountered: