diff --git a/src/index.ts b/src/index.ts index e7f888c..8c2111d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -83,7 +83,10 @@ export default class Plugin { } } } else if (isHTML(fileName)) { - this.html[fileName] = assets[fileName].source() + const isCurrentFileNeedsToBeInlined = this.filter(fileName) + if (isCurrentFileNeedsToBeInlined) { + this.html[fileName] = assets[fileName].source() + } } }) }