-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprerender.js
36 lines (33 loc) · 889 Bytes
/
prerender.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { build, javascript } from 'emmy-dom/dist/server.js'
import { app, App } from './app/index.js'
import { login, Login } from './app/login.js'
import { signup, Signup } from './app/signup.js'
import { gallery } from './app/components/gallery.js'
build({
app: App,
template: 'template.html',
generators: { app, gallery },
dependencies: javascript`
import { load, html } from 'emmy-dom'
`
})
build({
app: Login,
template: 'template.html',
generators: { login },
dependencies: javascript`
import { load, html } from 'emmy-dom'
import { signInWithEmail } from './app/services/client.js'
`,
path: 'login.html'
})
build({
app: Signup,
template: 'template.html',
generators: { signup },
dependencies: javascript`
import { load, html } from 'emmy-dom'
import { signUpNewUser } from './app/services/client.js'
`,
path: 'signup.html'
})