-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Serve Webpack DLL from Memory? #527
New issue
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
Comments
I meet the similar problem too. Is there any solutions? |
@yanyu0517 - This plugin solved my problem: https://github.com/gajus/write-file-webpack-plugin. Then, i just had to point my public path at the physical location and was able to get it to work. Note that it was a bit tricky, but it is resolvable. |
If you're using express in front of
Obviously making sure you've built the Dll before starting up express |
Thats a fantastic solution -- will close this issue as it seems sufficient for most cases. |
You can tell it to serve existing files from disk by adding |
Uh oh!
There was an error while loading. Please reload this page.
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 fromwebpack.config.js
and served from memory. However, when trying to setup webpack's DLL capabilities it requires a secondwebpack.vendors
config to compile out the manifest into a file that sits on the file-system, and thenwebpack.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/
) thevendors.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 fromwebpack.config.js
?Note: I'm following this example to create the DLL: https://gist.github.com/robertknight/058a194f45e77ff95fcd
The text was updated successfully, but these errors were encountered: