vue.config.js 694 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. outputDir:"yos",
  3. lintOnSave: false,
  4. productionSourceMap:false,
  5. publicPath: './',
  6. devServer: {
  7. open: true,
  8. // host: '192.168.4.170',
  9. host: 'localhost',
  10. port: 8080,
  11. proxy: {
  12. '/apis': {
  13. target: 'http://61.164.207.46:8100/', // target host
  14. // target: 'https://meida.cnyunl.com',
  15. ws: true, // proxy websockets
  16. changeOrigin: true, // needed for virtual hosted sites
  17. pathRewrite: {
  18. '^/apis': '' // rewrite path
  19. }
  20. },
  21. }
  22. },
  23. chainWebpack(config) {
  24. config.plugin('html').tap((args) => { //标题
  25. args[0].title = '美大营销管理平台';
  26. return args;
  27. })
  28. },
  29. }