vue项目多环境配置(.env)的实现

 "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "build:bsy": "vue-cli-service build --mode bsy",
    "build:kthz": "vue-cli-service build --mode kthz",
    "serve:bsy": "vue-cli-service serve --mode bsy",
    "serve:kthz": "vue-cli-service serve --mode kthz",
  },

--mode bsy 对应.env.bsy 文件,其他模式类似,如--mode kthz 对应.env.kthz 文件

你可能感兴趣的:(vue.js)