bundle-loader icon indicating copy to clipboard operation
bundle-loader copied to clipboard

Can I get a map from module name to target file

Open liuyuekeng opened this issue 9 years ago • 3 comments

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

liuyuekeng avatar Oct 27 '16 02:10 liuyuekeng

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

liuyuekeng avatar Oct 27 '16 05:10 liuyuekeng

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

michael-ciniawsky avatar Apr 13 '17 22:04 michael-ciniawsky

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

jalooc avatar Apr 26 '17 13:04 jalooc