546669204 / vite-docusaurus

A docusaurus packager based on vite.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vite-docusaurus

A docusaurus packager based on vite.

NPM package NPM downloads MIT License


Installation and Usage

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"
  },

How it works

yarn build 


yarn dev


yarn preview

Future

  • [*] vite
  • [*] esbuild
  • [*] fast

About

A docusaurus packager based on vite.


Languages

Language:TypeScript 99.2%Language:HTML 0.8%Language:JavaScript 0.1%