|
|
@@ -124,11 +124,9 @@ this.SingleFileCore = (() => {
|
|
|
initializationPromises.push(this.processor.htmlImports(true));
|
|
|
}
|
|
|
await Promise.all(initializationPromises);
|
|
|
-
|
|
|
if (this.options.removeUnusedCSSRules) {
|
|
|
this.processor.removeUnusedCSSRules();
|
|
|
}
|
|
|
-
|
|
|
this.pendingPromises = [this.processor.inlineStylesheets(), this.processor.attributeStyles(), this.processor.pageResources()];
|
|
|
if (!this.options.removeScripts) {
|
|
|
this.pendingPromises.push(this.processor.scripts());
|