Skip to content

This repository includes example config for the webpack to enable long term hashing

Notifications You must be signed in to change notification settings

evo-company/webpack-long-term-caching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to achieve reliable long term caching

  1. Create vendor chunk with deps that change rarely (node_modules).
  2. Add [chunkhash] to the resulting output.filename and output.chunkFilename.
  3. Create runtime chunk to store all chunknames.
  4. Use HashedModuleIdsPlugin.
  5. Use NamedChunksPlugin.
  6. Use NameAllModulesPlugin - npm i -D name-all-modules-plugin.

To read:

About

This repository includes example config for the webpack to enable long term hashing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published