From f181cbc5aa59d613c625543ddfdeebe7f2448560 Mon Sep 17 00:00:00 2001 From: Jessica Schilling Date: Fri, 24 Jul 2020 16:11:24 -0600 Subject: [PATCH] Move icons credit comment; basic build script but minifying goes too far --- package.json | 5 +++++ src/dir-index.html | 1 - src/icons.css | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f71eedee8..d7d49a63e 100644 --- a/package.json +++ b/package.json @@ -17,5 +17,10 @@ "license": "MIT", "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", "scripts": { + "build": "npm run build:clean && npm run build:stripstylelinks && npm run build:minify && npm run build:insert", + "build:clean": "rm -rf ./dist/*", + "build:stripstylelinks": "sed '/ dist/base-html.html", + "build:minify": "(echo \"\") > dist/minified-style.html", + "build:insert": "sed '// r dist/minified-style.html' dist/base-html.html > dist/dir-index.html" } } diff --git a/src/dir-index.html b/src/dir-index.html index 0f940db46..a399152c2 100644 --- a/src/dir-index.html +++ b/src/dir-index.html @@ -18,7 +18,6 @@ - {{ .Path }} diff --git a/src/icons.css b/src/icons.css index 7a9260fa3..6bf7cbfce 100644 --- a/src/icons.css +++ b/src/icons.css @@ -1,3 +1,5 @@ +/* Source - fileicons.org */ + .ipfs-_blank { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWBJREFUeNqEUj1LxEAQnd1MVA4lyIEWx6UIKEGUExGsbC3tLfwJ/hT/g7VlCnubqxXBwg/Q4hQP/LhKL5nZuBsvuGfW5MGyuzM7jzdvVuR5DgYnZ+f99ai7Vt5t9K9unu4HLweI3qWYxI6PDosdy0fhcntxO44CcOBzPA7mfEyuHwf7ntQk4jcnywOxIlfxOCNYaLVgb6cXbkTdhJXq2SIlNMC0xIqhHczDbi8OVzpLSUa0WebRfmigLHqj1EcPZnwf7gbDIrYVRyEinurj6jTBHyI7pqVrFQqEbt6TEmZ9v1NRAJNC1xTYxIQh/MmRUlmFQE3qWOW1nqB2TWk1/3tgJV0waVvkFIEeZbHq4ElyKzAmEXOx6gnEVJuWBzmkRJBRPYGZBDsVaOlpSgVJE2yVaAe/0kx/3azBRO0VsbMFZE3CDSZKweZfYIVg+DZ6v7h9GDVOwZPw/PoxKu/fAgwALbDAXf7DdQkAAAAASUVORK5CYII=); background-repeat: no-repeat;