aboutsummaryrefslogtreecommitdiffstats
path: root/web/esinstall.js
blob: 8cb568217dde5fd663c0d2460ebfd19b6db72c40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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))
})
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage