vite+vue2+elementui构建之 package.json

webpack版本太低,构建依赖太多,头大。

各种查阅资料,弄了一份直通构建vite构建elementUi核心文件,

构建基于开源若依vue2+vue3版本改造,感谢开源,感谢若依。

vite+vue2+elementui构建之 vite.config.js-CSDN博客

package.json

javascript 复制代码
{
  "name": "自行替换工程名",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  },
  "dependencies": {
    "aieditor": "^1.3.8",
    "axios": "^1.8.4",
    "clipboard": "^2.0.8",
    "core-js": "^2.6.11",
    "crypto-js": "^4.2.0",
    "dayjs": "^1.11.13",
    "echarts": "^4.2.1",
    "element-ui": "^2.15.13",
    "file-saver": "^2.0.5",
    "js-cookie": "^2.2.0",
    "normalize.css": "^8.0.1",
    "nprogress": "^0.2.0",
    "qrcode": "^1.5.4",
    "screenfull": "^5.0.2",
    "v-charts": "^1.19.0",
    "v-distpicker": "^1.0.20",
    "vue": "^2.7.16",
    "vue-cropper": "^0.5.5",
    "vue-meta": "^2.4.0",
    "vue-router": "^3.4.9",
    "vuedraggable": "^2.24.3",
    "vuex": "^3.6.0"
  },
  "devDependencies": {
    "@vitejs/plugin-vue2": "^2.3.3",
    "@vitejs/plugin-vue2-jsx": "^1.1.1",
    "fast-glob": "^3.3.3",
    "sass": "1.77.5",
    "sass-loader": "10.1.1",
    "unplugin-auto-import": "^19.1.2",
    "vite": "^4.0.0",
    "vite-plugin-svg-icons": "^2.0.1"
  },
  "engines": {
    "node": ">=8.9",
    "npm": ">= 3.0.0"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions"
  ]
}
相关推荐
曲幽5 小时前
FastAPI+Vue:文件分片上传+秒传+断点续传,这坑我帮你踩平了!
python·vue·upload·fastapi·web·blob·chunk·spark-md5
xiaotao13110 小时前
Vite 完全学习指南
前端·vite·前端打包
蓝黑20201 天前
Vue组件通信之v-model
前端·javascript·vue
不会写DN1 天前
Vue3中的computed 与 watch 的区别
javascript·面试·vue
钛态1 天前
前端WebSocket实时通信:别再用轮询了!
前端·vue·react·web
xiaotao1312 天前
第二十一章:CI/CD 最佳实践
前端·ci/cd·vite·前端打包
千码君20162 天前
kotlin:jetpack compose 生成动态可控的动画
vue.js·elementui·kotlin
蓝黑20202 天前
Vue组件通信之slot
前端·javascript·vue
xiaotao1312 天前
第十八章:微前端与 Module Federation
前端·vite·前端打包
牧杉-惊蛰2 天前
修改表格选中时的背景色与鼠标滑过时的背景色
前端·javascript·css·vue.js·elementui·html