3
0

vue.config.js 633 B

1234567891011121314151617181920212223
  1. // 配置手册: https://cli.vuejs.org/zh/config/#vue-config-js
  2. const { defineConfig } = require("@vue/cli-service");
  3. module.exports = defineConfig({
  4. transpileDependencies: true,
  5. productionSourceMap: false,
  6. // publicPath: './','
  7. devServer: {
  8. port: 9012,
  9. proxy: {
  10. "/api/": {
  11. target: process.env.VUE_APP_DEV_PROXY,
  12. changeOrigin: true,
  13. },
  14. },
  15. },
  16. chainWebpack: (config) => {
  17. // webpack-chain配置手册:github.com/neutrinojs/webpack-chain#getting-started
  18. config.plugin("html").tap((args) => {
  19. args[0].title = "运维管理平台";
  20. return args;
  21. });
  22. },
  23. });