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.
@@ -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)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chocola",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "Chocola pipeline for web apps.",
5
5
  "keywords": [
6
6
  "web",