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
·29 lines (26 loc) · 844 Bytes
/
esbuild
File metadata and controls
executable file
·29 lines (26 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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:.png=dataurl \
--loader:.svg=dataurl \
--loader:.woff2=file \
--metafile=esbuild.json \
--minify \
--outbase=. \
--outdir=dist \
--public-path=/dist \
--sourcemap \
--target=es2020,chrome88 \
`find \
css \
js \
-type f \
-not -name '_*' \
-not -name '*.svg'`