site: fix uncss in make all

mautrix
Harvey Tindall 3 years ago
parent c35fdc2cbe
commit d5a33cf242
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -2,12 +2,12 @@ all:
-mkdir -p out
cp index.html out/
cp -r node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 out/
npx esbuild --bundle ts/main.ts --outfile=out/main.js --minify
npx esbuild --bundle base.css --outfile=out/bundle.css --external:remixicon.css --minify
npx uncss index.html --stylesheets out/bundle.css > out/_bundle.css
cd out && npx uncss index.html --stylesheets bundle.css > _bundle.css; cd ..
mv out/_bundle.css out/bundle.css
npx uncss index.html --stylesheets out/remixicon.css > out/_remixicon.css
cd out && npx uncss index.html --stylesheets remixicon.css > _remixicon.css; cd ..
mv out/_remixicon.css out/remixicon.css
npx esbuild --bundle ts/main.ts --outfile=out/main.js --minify
cp ../static/* out/
debug:

Loading…
Cancel
Save