From c08106fafde5d9b87f9b8e73ddd6b6ee6262e15a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Sun, 31 May 2020 03:36:37 +0100 Subject: [PATCH] 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. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d74cda..63c074e 100644 --- a/package.json +++ b/package.json @@ -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": {