vue.config.js 594 B

12345678910111213141516171819202122
  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. // publicPath: './',
  6. devServer: {
  7. port: 9012,
  8. proxy: {
  9. "/api/": {
  10. target: process.env.VUE_APP_DEV_PROXY,
  11. changeOrigin: true
  12. }
  13. }
  14. },
  15. chainWebpack: config => {
  16. // webpack-chain配置手册:github.com/neutrinojs/webpack-chain#getting-started
  17. config.plugin("html").tap(args => {
  18. args[0].title = "运维管理平台";
  19. return args;
  20. });
  21. }
  22. });