"scripts": {
"dev": "cross-env BRANCH_ENV=a webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"dev:b": "cross-env BRANCH_ENV=b webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"dev:c": "cross-env BRANCH_ENV=c webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"unit": "jest --config test/unit/jest.conf.js --coverage",
"e2e": "node test/e2e/runner.js",
"test": "npm run unit && npm run e2e",
"build": "cross-env BRANCH_ENV=a node build/build.js",
"build:b": "cross-env BRANCH_ENV=b node build/build.js",
"build:c": "cross-env BRANCH_ENV=c node build/build.js"
},
基于Vue-cli的一套代碼支持多個(gè)項(xiàng)目的解決方案應(yīng)用場(chǎng)景 在toB端業(yè)務(wù)中佣耐,同樣的產(chǎn)品读虏,客戶多多少少會(huì)要求一些定制化。從皮膚,圖片,到一些小的功能的差異。前端總是沖在最前面需要改的旋炒。如果改動(dòng)不大的話步悠,拉個(gè)分支有增加了維護(hù)的...