1
0
mirror of https://github.com/osmarks/website synced 2025-08-29 16:57:56 +00:00

rework compilation process

- minify (some) JS
- minify HTML output (markdown-it output, for example, isn't minified)
- switch stylus to SASS as stylus is not well maintained

Probably worth considering too:
- pre-gzip everything, reconfigure webserver to use that
- better parallelization
This commit is contained in:
2020-06-20 17:23:59 +01:00
parent 5bb3300cdb
commit 958facc2cf
6 changed files with 327 additions and 261 deletions

View File

@@ -12,7 +12,8 @@ html(lang="en")
meta(name="description", content=description)
link(rel="manifest", href="/assets/manifest.webmanifest")
link(rel="shortcut icon", href="/assets/images/icon.png", type="image/png")
style= css
// this may be problematic but otherwise it overescapes stuff
style!= css
if comments !== "off"
script(src=`https://${domain}/isso/js/embed.min.js`, async=true, data-isso=`https://${domain}/isso/`)
body