chocola 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/pipeline.js +3 -1
- package/package.json +1 -1
package/compiler/pipeline.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { promises as fs } from "fs";
|
|
2
|
-
import { loadWithAssets, throwError, genRandomId } from "./utils.js";
|
|
2
|
+
import { loadWithAssets, throwError, genRandomId, isWebLink } from "./utils.js";
|
|
3
3
|
import { readMyFile, checkFile } from "./fs.js";
|
|
4
4
|
import { JSDOM } from "jsdom";
|
|
5
5
|
import path from "path";
|
|
@@ -130,6 +130,8 @@ export async function copyResources(__srcdir, outDirPath) {
|
|
|
130
130
|
const newElements = Array.from(newDoc.window.document.querySelectorAll("*"));
|
|
131
131
|
|
|
132
132
|
for (const el of newElements) {
|
|
133
|
+
if (el.type === "stylesheet") return;
|
|
134
|
+
|
|
133
135
|
const src = el.getAttribute("src") || el.getAttribute("href");
|
|
134
136
|
|
|
135
137
|
if (src && !isWebLink(src)) {
|