Skip to content

Commit

Permalink
Move icons credit comment; basic build script but minifying goes too far
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicaschilling committed Jul 24, 2020
1 parent 3e83eba commit f181cbc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 '/<link rel=\"stylesheet\"/d' src/dir-index.html > dist/base-html.html",
"build:minify": "(echo \"<style>\" && cat src/icons.css src/style.css | tr -d \" \t\n\r\" && echo \"</style>\") > dist/minified-style.html",
"build:insert": "sed '/<head>/ r dist/minified-style.html' dist/base-html.html > dist/dir-index.html"
}
}
1 change: 0 additions & 1 deletion src/dir-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlo89/56ZQ/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUjDu1lo89/6mhTP+zrVP/nplD/5+aRK8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHNiIS6Wjz3/ubFY/761W/+vp1D/urRZ/8vDZf/GvmH/nplD/1BNIm8AAAAAAAAAAAAAAAAAAAAAAAAAAJaPPf+knEj/vrVb/761W/++tVv/r6dQ/7q0Wf/Lw2X/y8Nl/8vDZf+tpk7/nplD/wAAAAAAAAAAAAAAAJaPPf+2rVX/vr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ACAAQAAwAMAAPAPAAD4HwAA/n8AAA==" />
<link rel="stylesheet" href="style.css"/>
<!-- Icon art is https://fileicons.org/ -->
<link rel="stylesheet" href="icons.css">
<title>{{ .Path }}</title>
</head>
Expand Down
2 changes: 2 additions & 0 deletions src/icons.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f181cbc

Please sign in to comment.