vue命令怎么打包和编译项目
不同的开源项目命令可能也不一样,具体命令是在package.json中配置的。
只要在文件中的scripts属性中即可查看到命令的配置。比如此处的配置,编译运行是npm run dev 打包是npm run build:prod
"scripts": {
"dev": "vue-cli-service serve",
"lint": "eslint --ext .js,.vue src",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"new": "plop",
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
"test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit"
},





0 条评论