Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Can I get a map from module name to target file #28

Open
liuyuekeng opened this issue Oct 27, 2016 · 3 comments
Open

Can I get a map from module name to target file #28

liuyuekeng opened this issue Oct 27, 2016 · 3 comments
Assignees

Comments

@liuyuekeng
Copy link

require('bundle!./' + moduleName)
Webpack would generate files per chunk.
How can i get the relationship between asset file and module name

@liuyuekeng
Copy link
Author

some thing like 'head' -> '17.17-a8a9d7162044e4556872.js'

@michael-ciniawsky
Copy link
Member

@liuyuekeng Please provide more info about your setup/usecase (webpack.config.js)

@jalooc
Copy link

jalooc commented Apr 26, 2017

@liuyuekeng Normally you get that mapping in your main webpack bundle, but you can extract it using e.g. chunk-manifest-webpack-plugin

@joshwiens joshwiens removed the question label May 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants