包管理工具

reco_luan2024-04-27

如果包管理器使用的是 npmyarnpackage.json 中只需要包含:

  1. vuepress
  2. vuepress-theme-reco
  3. @vuepress/bundler-vite@vuepress/bundler-webpack

如果包管理器使用的是 pnpmpackage.json 中还需要包含 vue

{
  "name": "vuepress-theme-reco-demo",
  "version": "2.0.0",
  "description": "Demo for vuepress-theme-reco@2.x.",
  "repository": "git@github.com:recoluan/vuepress-theme-reco-demo.git",
  "author": "reco_luan <recoluan@outlook.com>",
  "license": "MIT",
  "scripts": {
    "dev": "vuepress dev .",
    "start": "vuepress dev .",
    "build": "vuepress build ."
  },
  "dependencies": {
    "vue": "^3.5.0",
    "vuepress": "2.0.0-rc.18",
    "vuepress-theme-reco": "2.0.0-rc.23",
    "@vuepress/bundler-vite": "2.0.0-rc.18",
    "@vuepress/bundler-webpack": "2.0.0-rc.18"
  }
}
最后更新时间 11/16/2024, 5:40:54 PM