Description
Our app has become fairly large and I'm trying to reduce the compile time by moving its vendor assets into a DLL. Right now we have it set up so that our .js is proxied through a Django app which serves assets from webpack-dev-server
. This works great when everything is a single process and compiled from webpack.config.js
and served from memory. However, when trying to setup webpack's DLL capabilities it requires a second webpack.vendors
config to compile out the manifest into a file that sits on the file-system, and then webpack.config
reads in that file when it does its thing. Since our app is proxied through Django and we have to use the full webpack-dev-server url (http://localhost:3000/static/
) the vendors.js
file is lost.
So my question is: is it possible to tell webpack-dev-server
that my vendor dll exists and to serve it up in addition to the normal js content that is output from webpack.config.js
?
Note: I'm following this example to create the DLL: https://gist.github.com/robertknight/058a194f45e77ff95fcd