diff --git a/vue.config.js b/vue.config.js index 007c23ccbe04a91190a0ad41ee0975d580a30601..1a835cf75ef0131aedbea6aa48c0744a91b0cfd8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,12 +1,12 @@ const globalPath = require("./src/config/index.js"); - +const dir = globalPath.jsonPath.slice(1); /** * * 配置前端代理,以及开发环境配置 */ module.exports = { publicPath: globalPath.jsonPath, - outputDir:globalPath.jsonPath.slice(1), + outputDir: dir || 'dist', pages: { index: { entry: ["node_modules/core-js", "src/main.ts"],