forked from code-golf/code-golf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesbuild
More file actions
executable file
·22 lines (19 loc) · 704 Bytes
/
esbuild
File metadata and controls
executable file
·22 lines (19 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e
rm -rf dist esbuild.json
npm install
node_modules/.bin/esbuild "$@" \
--asset-names=[dir]/[name]-[hash] \
--bundle \
--entry-names=[dir]/[name]-[hash] \
--format=esm \
--inject:js/_inject.ts \
--jsx-factory=createElement \
--loader:.woff2=file \
--metafile=esbuild.json \
--minify \
--outbase=. \
--outdir=dist \
--public-path=/dist \
--sourcemap \
--target=es2020 \
`find css/font.css js -type f -not -name '_*'`