example: https://github.com/546669204/nav-website.git
yarn add vite-docusaurus
edit package.json
"scripts": {
"docusaurus": "docusaurus",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc",
+ "build": "NODE_OPTIONS=--max_old_space_size=5000 vite-docusaurus build",
+ "dev": "vite-docusaurus dev",
+ "preview": "vite-docusaurus preview"
},
yarn build
yarn dev
yarn preview
- [*] vite
- [*] esbuild
- [*] fast