Skip to content

Commit 936fa78

Browse files
committed
avoid hasing the default encoding
1 parent 15f8ba4 commit 936fa78

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/asset/AssetGenerator.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,12 @@ class AssetGenerator extends Generator {
415415
.ident;
416416
if (ident) hash.update(ident);
417417
} else {
418-
if (this.dataUrlOptions.encoding)
418+
if (
419+
this.dataUrlOptions.encoding &&
420+
this.dataUrlOptions.encoding !== DEFAULT_ENCODING
421+
) {
419422
hash.update(this.dataUrlOptions.encoding);
423+
}
420424
if (this.dataUrlOptions.mimetype)
421425
hash.update(this.dataUrlOptions.mimetype);
422426
// computed mimetype depends only on module filename which is already part of the hash

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy