Add .hbs extension to html output after dist build

This is necessary because rocket's templating uses file extensions to
identify which files to hand to its templating tool.

It would be nicer to work around this on the server end, or upstream,
but this is too much effort for now.
This commit is contained in:
Tristan Daniël Maat 2020-05-31 03:36:37 +01:00
parent a722d48c1e
commit c08106fafd
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -35,7 +35,7 @@
"build": "parcel build --no-autoinstall $(find src -path src/lib -prune -o -name '*.pug' -print)",
"serve": "parcel serve --no-autoinstall $(find src -path src/lib -prune -o -name '*.pug' -print)",
"watch": "parcel watch --no-autoinstall $(find src -path src/lib -prune -o -name '*.pug' -print)",
"build-dist": "parcel build --no-cache --no-autoinstall $(find src -path src/lib -prune -o -name '*.pug' -print)"
"build-dist": "parcel build --no-cache --no-autoinstall $(find src -path src/lib -prune -o -name '*.pug' -print); rename '.html' '.html.hbs' dist/browser/*.html"
},
"targets": {
"browser": {