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"
  ]
}
相关推荐
REDcker7 小时前
浏览器端Web程序性能分析与优化实战 DevTools指标与工程清单
开发语言·前端·javascript·vue·ecmascript·php·js
DevilSeagull13 小时前
电脑上安装的服务会自动消失? 推荐项目: localhostSCmanager. 更好管理你的服务!
测试工具·安全·react·vite·localhost·hono·trpc
jay神2 天前
基于团队模式的C程序设计课程辅助教学管理系统
java·spring boot·vue·web开发·管理系统
钛态2 天前
前端TypeScript高级技巧:让你的代码更安全
前端·vue·react·web
kyriewen3 天前
Webpack vs Vite:一个是“老黄牛”,一个是“猎豹”,你选谁?
前端·webpack·vite
吴声子夜歌3 天前
Vue3——路由管理
前端·vue·es6·vue-router
钛态3 天前
前端微前端架构:大项目的救命稻草还是自找麻烦?
前端·vue·react·web
钛态3 天前
前端趋势:别被时代抛弃
前端·vue·react·web
恶猫4 天前
网页自动化模拟操作时,模拟真实按键触发事件【终级方案】
前端·javascript·自动化·vue·网页模拟
无心使然云中漫步4 天前
Openlayers调用ArcGis地图服务之五 —— 要素识别(/identify)
前端·arcgis·vue·数据可视化