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:
parent
a722d48c1e
commit
c08106fafd
|
@ -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": {
|
||||
|
|
Reference in a new issue