From 3003ee0cc55f256db93c900913e34de9fa9dd1dc Mon Sep 17 00:00:00 2001 From: Stevenzwzhai Date: Thu, 18 Apr 2019 15:40:41 +0800 Subject: [PATCH] fix: when build multiple pages css will inline all pages --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() + } } }) }