Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 936fa78

Browse filesBrowse files
committed
avoid hasing the default encoding
1 parent 15f8ba4 commit 936fa78
Copy full SHA for 936fa78

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎lib/asset/AssetGenerator.js

Copy file name to clipboardExpand all lines: lib/asset/AssetGenerator.js
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.