From d0b3c432bdc80796f8854651b2822662a3ccef70 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Mon, 11 Nov 2019 18:58:24 +0100 Subject: Replaced UglifyJS with Terser, include whole asset path in struct, display errors in template instead of basic HTML --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 652aee5..feebcfd 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,8 @@ dev: build build: clean sassc -t compressed css/main.scss assets/style.css - tsc --strict --module none --outFile /dev/stdout js/* | uglifyjs -c -m -o assets/main.js -- - pyftsubset fonts/iosevka-term-ss03-regular.ttf --name-IDs+=0,4,6 --text-file=fonts/glyphs.txt --flavor='woff' --output-file='assets/iosevka-term-ss03-regular.woff' + tsc --strict --module none --outFile /dev/stdout js/* | terser --compress --mangle -o assets/main.js -- + pyftsubset fonts/iosevka-term-ss03-regular.ttf --name-IDs+=0,4,6 --text-file=fonts/glyphs.txt --flavor='woff' --with-zopfli --output-file='assets/iosevka-term-ss03-regular.woff' pyftsubset fonts/iosevka-term-ss03-regular.ttf --name-IDs+=0,4,6 --text-file=fonts/glyphs.txt --flavor='woff2' --output-file='assets/iosevka-term-ss03-regular.woff2' go build -o ./gopherproxy ./cmd/gopherproxy/main.go -- cgit v1.2.3-70-g09d2