autodll-webpack-plugin icon indicating copy to clipboard operation
autodll-webpack-plugin copied to clipboard

How to make it works with AssetsPlugin

Open raymondsze opened this issue 7 years ago • 1 comments

I would like to obtain the css and js mapping for server side rendering purpose. The produced assets.json does not contain the vendor js... How to make it works?

raymondsze avatar Oct 08 '17 05:10 raymondsze

I added AssetsPlugin to plugins section of AutoDllPlugin, the output assets json ignore the config.output.publicPath, also the path specified in plugin. Is it intended? My config.out.publicPath is http://0.0.0.0:3000 while the path is ./static/js I think it is caused by separate compilers (dll compiler vs main compiler) and the path is append after dll is built.

{"vendor":{"js":"vendor.30d01253.js"}}

What I expected should be

{"vendor":{"js":"http://0.0.0.0:3000/static/js/vendor.30d01253.js"}}

raymondsze avatar Oct 09 '17 13:10 raymondsze