From 36e053f4f0a2f63c08f7c28b9492c067f1ca42bc Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 27 May 2026 00:53:18 -0700 Subject: migrate pinapelz.moe -> pinapelz.com --- sticker.pinapelz.com/esinstall.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sticker.pinapelz.com/esinstall.js (limited to 'sticker.pinapelz.com/esinstall.js') diff --git a/sticker.pinapelz.com/esinstall.js b/sticker.pinapelz.com/esinstall.js new file mode 100644 index 0000000..8cb5682 --- /dev/null +++ b/sticker.pinapelz.com/esinstall.js @@ -0,0 +1,23 @@ +const { install, printStats } = require("esinstall") + +install( + [{ + specifier: "htm/preact", + all: false, + default: false, + namespace: false, + named: ["html", "render", "Component"], + }], + { + dest: "./lib", + sourceMap: false, + treeshake: true, + verbose: true, + } +).then(data => { + const oldPrefix = "web_modules/" + const newPrefix = "lib/" + const spaces = " ".repeat(oldPrefix.length - newPrefix.length) + console.log("Installation complete") + console.log(printStats(data.stats).replace(oldPrefix, newPrefix + spaces)) +}) -- cgit v1.2.3