vue-cli3生成的package.json说明
程序员文章站
2022-05-13 19:39:50
...
{
"name": "resource-web",
"version": "0.1.0",
"private": true,
//npm命令
"scripts": {
//项目启动,就是我们常用的npm run serve
//如果下面这行这么写 "dev": "vue-cli-service serve"
//那么我们启动的时候就 npm run dev
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^2.6.5",
"vue": "^2.6.10",
"vue-router": "^3.0.3",
"vuex": "^3.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.6.0",
"@vue/cli-plugin-eslint": "^3.6.0",
"@vue/cli-service": "^3.6.0",
"@vue/eslint-config-prettier": "^4.0.1",
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"less": "^3.0.4",
"less-loader": "^4.1.0",
"lint-staged": "^8.1.5",
"vue-template-compiler": "^2.5.21"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"@vue/prettier"
],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
}
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,vue}": [
"vue-cli-service lint",
"git add"
]
}
}
```**加粗样式**
上一篇: package.json文件说明解释
下一篇: 前端执行npm run dev报错
推荐阅读
-
C#调用Matlab生成的dll方法的详细说明
-
package.json的各个属性翻译说明
-
Python .py生成.pyd文件并打包.exe 的注意事项说明
-
Vue-cli3生成的Vue项目加载Mxgraph方法示例
-
浅谈springboot中tk.mapper代码生成器的用法说明
-
解读vue生成的文件目录结构及说明
-
用ZipArchive如何写才能生成压缩包右边的注解?(就是右边的关于一些关于压缩包的说明)
-
用ZipArchive如何写才能生成压缩包右边的注解?(就是右边的关于一些关于压缩包的说明)
-
【Angular4学习】npm 安装参数中的 --save-dev 含义 + package.json的依赖关系说明
-
vue-cli3生成的package.json说明