We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a1e05b commit ee2cb2fCopy full SHA for ee2cb2f
lib/resource-mapper.js
@@ -71,7 +71,11 @@ class ResourceMapper {
71
// Find a file with the same name (minus the dollar extension)
72
let match = searchIndex ? await this._getMatchingFile(folder, filename, isIndex) : ''
73
// Do not match with html if the content type won't allow it
74
- if (contentType && !(contentType.includes('text/html') || contentType.includes('*/*'))) {
+ if (
75
+ contentType &&
76
+ !(contentType.includes('text/html') || contentType.includes('*/*')) &&
77
+ match === 'index.html'
78
+ ) {
79
match = ''
80
}
81
if (match === undefined) {
0 commit comments