概述
{
"name": "investigation-view",
"version": "0.1.0",
"private": true,
"scripts": { //项目的环境,有运行环境,有测试环境等,在开发中,选择serve即可
//选择不同的环境,需要在项目新建其对应的配置文件
// "serve": "vue-cli-service serve --mode dev"配置文件如下:
//ENV='development'
//#base api
//VUE_APP_BASE_API='' //后端地址
"serve": "vue-cli-service serve --mode dev",
"test": "vue-cli-service serve --mode test",
"build": "vue-cli-service build --mode prod",
"lint": "vue-cli-service lint"
},
"dependencies": { //项目的依赖,类似于后端的pom.xml,在此处的依赖,选择 "build": "vue-cli-service build --mode prod", 时会打包进去,一般添加插件,选择装入此处即可
"amfe-flexible": "^2.2.1",
"aws-sdk": "^2.645.0",
"axios": "^0.19.2",
"babel-plugin-import": "^1.13.0",
"core-js": "^3.6.4",
"less": "^3.11.1",
"less-loader": "^5.0.0",
"node-loader": "^0.6.0",
"postcss-aspect-ratio-mini": "^1.0.1",
"postcss-cssnext": "^3.1.0",
"postcss-import": "^12.0.1",
"postcss-px-to-viewport": "^1.1.1",
"postcss-url": "^8.0.0",
"postcss-viewport-units": "^0.1.6",
"postcss-write-svg": "^3.0.1",
"vant": "^2.5.7",
"vue": "^2.6.11",
"vue-i18n": "^8.15.7",
"vue-router": "^3.1.5",
"vuex": "^3.1.3",
"vux": "^2.9.4"
},
"devDependencies": { //项目的依赖,在build 时。不会被打包,类似于pom.xml 中的scope作用域
"@vue/cli-plugin-babel": "^4.2.0",
"@vue/cli-plugin-eslint": "^4.2.0",
"@vue/cli-plugin-router": "^4.2.3",
"@vue/cli-service": "^4.2.0",
"babel-eslint": "^10.0.3",
"cssnano-preset-advanced": "^4.0.7",
"eslint-plugin-vue": "^6.1.2",
"vue-template-compiler": "^2.6.11"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
最后
以上就是冷艳大叔为你收集整理的vue cli中 package.json文件详解的全部内容,希望文章能够帮你解决vue cli中 package.json文件详解所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复