Skip to content
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

use AutoDllPlugin to separately build vendor dependencies? #2

Open
agilgur5 opened this issue Aug 12, 2018 · 0 comments
Open

use AutoDllPlugin to separately build vendor dependencies? #2

agilgur5 opened this issue Aug 12, 2018 · 0 comments

Comments

@agilgur5
Copy link
Owner

agilgur5 commented Aug 12, 2018

https://github.com/asfktz/autodll-webpack-plugin is a significantly simplified plugin that combines the standard DllPlugin + DllReferencePlugin into one.

The README says it will be obsolete with webpack 5's built-in caching, but there isn't a timeline for that and I'm not sure what types of caching it will include, since HardSourceWebpackPlugin, DLL, and others don't completely overlap with each other. HardSource seems like it will be fundamental to webpack 5, but not sure about DLLs. mzgoddard/hard-source-webpack-plugin#251 (comment) shows that the two are complimentary: while HardSource makes the largest benefit, DLL can speed up production builds -- but actually slows down dev builds when used with HardSource.
DLL can also be used similarly to a vendor / commons chunk in production, but chunking might make more sense / be more predictable for use in production, though chunking doesn't cache builds, so DLL is still better for prod build perf (unsure if HardSource w/ CommonsChunk for prod builds would make DLL obsolete for prod as well). https://stackoverflow.com/questions/41890855/webpack-common-chunks-plugin-vs-webpack-dll-plugin goes into how they achieve similar goals

Other things to consider as well:

  1. Configuring modules to be included: Automatically building the dependencies list asfktz/autodll-webpack-plugin#54
  2. There are quite a bit of open issues that seem like they could cause quite a bit of bugs
@agilgur5 agilgur5 changed the title use AutoDllPlugin to separately build vendor dependencies use AutoDllPlugin to separately build vendor dependencies? Aug 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant