From 49889fe083ce8cab6e340f6fb999cc8ebe42ad69 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Fri, 7 Jun 2019 09:09:47 +0200 Subject: Embed CSS in executable the same way as fonts --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 247b88c..f25707c 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,7 @@ dev: build ./gopherproxy -bind 127.0.0.1:8000 build: clean - sassc -t compressed css/main.scss style.go - sed -i "s/.*/package gopherproxy\n\nvar styletext = \`&\`/" style.go + sassc -t compressed css/main.scss assets/style.css pyftsubset fonts/iosevka-term-ss03-regular.ttf --name-IDs+=0,4,6 --text-file=glyphs.txt --flavor='woff' --output-file='assets/iosevka-term-ss03-regular.woff' pyftsubset fonts/iosevka-term-ss03-regular.ttf --name-IDs+=0,4,6 --text-file=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