- Create vendor chunk with deps that change rarely (node_modules).
- Add
[chunkhash]
to the resultingoutput.filename
andoutput.chunkFilename
. - Create runtime chunk to store all chunknames.
- Use
HashedModuleIdsPlugin
. - Use
NamedChunksPlugin
. - Use
NameAllModulesPlugin
-npm i -D name-all-modules-plugin
.
-
Notifications
You must be signed in to change notification settings - Fork 0
evo-company/webpack-long-term-caching
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This repository includes example config for the webpack to enable long term hashing
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published