root 1f96238cc2 1 | hai 1 mes | |
---|---|---|
public | hai 2 meses | |
src | hai 1 mes | |
.browserslistrc | hai 3 meses | |
.env | hai 3 meses | |
.env.production | hai 3 meses | |
.env.test | hai 3 meses | |
.eslintrc.js | hai 3 meses | |
.gitignore | hai 3 meses | |
README.md | hai 3 meses | |
babel.config.js | hai 3 meses | |
package.json | hai 3 meses | |
vue.config.js | hai 3 meses |
npm install
npm run serve
npm run build
npm run test
npm run lint
//set NODE_OPTIONS=--openssl-legacy-provider &
/src/assets/img/dev 目录存放开发时的测试图片/icon 其他图片/icon放到对应的模块 /src/assets/img/commons 目录存放公共图片/icon
每个模块的api store router 放到对应模块的文件或文件夹内
打包时候从package.json 中根据不同环境打包
举例:npm run pro-build
"scripts": {
"serve": "vue-cli-service serve",
"lint": "vue-cli-service lint --fix",
"pro-build": "vue-cli-service build --modern --mode production",
"test-build": "vue-cli-service build --modern --mode test"
}
``
关于环境: