[PM-23550] prevent fonts from being cached in browser extension and desktop clients (#15585)

* add content hash to font asset filenames

* add content hash to font asset filename in desktop
This commit is contained in:
Will Martin 2025-07-14 01:21:56 -04:00 committed by GitHub
parent c1818b32e7
commit 4df5ef155d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ const moduleRules = [
test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
exclude: /loading.svg/,
generator: {
filename: "popup/fonts/[name][ext]",
filename: "popup/fonts/[name].[contenthash][ext]",
},
type: "asset/resource",
},

View File

@ -110,7 +110,7 @@ const renderer = {
test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
exclude: /loading.svg/,
generator: {
filename: "fonts/[name][ext]",
filename: "fonts/[name].[contenthash][ext]",
},
type: "asset/resource",
},