This repository has been archived by the owner on May 15, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable [chunkhash] in the bundle name
- Loading branch information
19321a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unlike previous commits, this one doesn’t affect the bundle size. Starting with this commit, we’ll start optimizing the app for caching instead of size.
This commit includes the file hash into the bundle name. This lets us enable caching – if the bundle gets changed, its name will also change, and the browser will re-download it. Corresponding article section
LitHub uses
html-webpack-plugin
, so the bundle file will be included into the HTML page automatically regardless of its name.Generated files
Before:
After: