Add nightink; esbuild: mark html as text

This way we can do an es6 import to get a html file as a string, which 
we can then pass to nightink for templating - all on the client-side!

Note to self: Instead of using .innerHTML directly, we might want to try 
doing document.createElement(), then .innerHTML, and then .appendChild 
where we actually want it to go
This commit is contained in:
Starbeamrainbowlabs 2022-02-26 00:23:33 +00:00
parent 34f031a9e4
commit 32d69501b0
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
3 changed files with 4 additions and 2 deletions

1
package-lock.json generated
View File

@ -14,6 +14,7 @@
"applause-cli": "^1.8.0",
"jpake": "^1.0.1",
"mime": "^3.0.0",
"nightink": "^0.1.3",
"p-queue": "^7.2.0",
"p-reflect": "^3.0.0",
"p-retry": "^5.0.0",

View File

@ -23,6 +23,7 @@
"applause-cli": "^1.8.0",
"jpake": "^1.0.1",
"mime": "^3.0.0",
"nightink": "^0.1.3",
"p-queue": "^7.2.0",
"p-reflect": "^3.0.0",
"p-retry": "^5.0.0",

View File

@ -44,12 +44,12 @@ function hash_file(hashName, path) {
minify: true,
sourcemap: true,
loader: {
".html": "file",
".html": "text",
".svg": "file",
".woff2": "file",
".woff": "file",
".eot": "file",
".ttf": "file"
".ttf": "file",
}
});
if(result.errors.length > 0 || result.warnings.length > 0)