Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 475 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 475 Bytes

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: