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:
parent
34f031a9e4
commit
32d69501b0
3 changed files with 4 additions and 2 deletions
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue