@divriots/jampack 0.4.0 → 0.4.1
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/README.md +3 -0
- package/dist/compress.d.ts +1 -0
- package/dist/optimize.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,6 +60,9 @@ Check the [Documentation side](https://jampack.divriots.com).
|
|
|
60
60
|
- [divRIOTS.com](https://divRIOTS.com)
|
|
61
61
|
- [Backlight.dev](https://backlight.dev)
|
|
62
62
|
- [story.to.design](https://story.to.design)
|
|
63
|
+
- [html.to.design](https://html.to.design/docs)
|
|
64
|
+
- [WebComponents.dev](https://WebComponents.dev)
|
|
65
|
+
- [LWC.studio](https://lwc.studio)
|
|
63
66
|
- [Components.studio](https://components.studio)
|
|
64
67
|
> Add yours here
|
|
65
68
|
|
package/dist/compress.d.ts
CHANGED
package/dist/optimize.js
CHANGED
|
@@ -13,7 +13,7 @@ import { isLocal, Resource, translateSrc } from "./utils/resource.js";
|
|
|
13
13
|
async function analyse(file) {
|
|
14
14
|
console.log("▶ " + file);
|
|
15
15
|
const html = (await fs.readFile(path.join($state.dir, file))).toString();
|
|
16
|
-
const $ = cheerio.load(html, { withStartIndices: true });
|
|
16
|
+
const $ = cheerio.load(html, { withStartIndices: true, decodeEntities: false });
|
|
17
17
|
const theFold = getTheFold($);
|
|
18
18
|
const imgs = $("img");
|
|
19
19
|
const imgsArray = [];
|