add basic backend code

This commit is contained in:
Pacharapol Withayasakpunt committed 2020-02-27 15:41:42 +07:00
1 parent eeeae2e3fe
commit e2be0d1d05
11 files changed
+2105 -14

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
module.exports = {
pluginOptions: {
prerenderSpa: {
registry: undefined,
renderRoutes: [
'/'
],
useRenderEvent: true,
headless: true,
onlyProduction: true,
postProcess: route => {
route.html = route.html
.replace(/<script (.*?)>/g, '<script $1 defer>')
.replace('id="app"', 'id="app" data-server-rendered="true"')
return route
}
}
}
}