feat: add nuxt-zero-js

This saves us one step in the build process although doesn't fix the root problem.
This commit is contained in:
2022-09-11 08:53:26 -04:00
parent 8f65123f32
commit e79f634d22
4 changed files with 250 additions and 5 deletions

View File

@@ -4,13 +4,9 @@ After hand-written HTML and a static site generator comes Nuxt!
**WARN: Volar 0.40.0 breaks all type-checking and I don't know why — stick with Volar 0.39.5.**
**WARN: Nuxt 3 is too new that prerendering actually renders a ton of JS and causes blinking — remove all `Prose*.mjs` to stop it**
Post-build instructions (while prerendering is bork)
- Strip all <script /> tags in every HTML file
- Compile `/script.ts` to `/script.js` (`tsc script.ts -m esnext -t esnext --moduleReslution node`)
- Remove `/api` and `/_nuxt/*.mjs`
Look at the [nuxt 3 documentation](https://v3.nuxtjs.org) to learn more.