npx nuxi cleanup [ROOTDIR] [--cwd=<directory>]
cleanup 指令會移除常用的 Nuxt 產生檔案和快取,包含
cleanup
.nuxt
.output
node_modules/.vite
node_modules/.cache
ROOTDIR="."
.
--cwd=<目錄>
nuxi build-module
在發布 Nuxt 模組之前,用於建構模組的 Nuxt 指令。
nuxi dev
dev 指令啟動一個開發伺服器,並在 https://127.0.0.1:3000 提供熱模組替換功能。
社群