2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Fixed admin sourcemap fingerprinting for chunk files (#18920)

no issue

- The fingerprinting on chunk files was happening twice (once by ember
and once by webpack), resulting in the .js file and the .map file not
matching
- This change prevents ember from fingerprinting the chunk.*.map files,
so the resulting .map and .js files will have the same basename
- No real functional difference here, just a bit easier to find the
corresponding .map file for a given .js file
This commit is contained in:
Chris Raible 2023-11-08 15:15:11 -08:00 committed by GitHub
parent b90d3632df
commit 78b1d130a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,8 @@ module.exports = function (defaults) {
'woff2',
'mp4',
'ico'
]
],
exclude: ['**/chunk*.map']
},
minifyJS: {
options: {