vue.config.js 571 B

1234567891011121314151617181920212223242526
  1. const { defineConfig } = require('@vue/cli-service')
  2. module.exports = defineConfig({
  3. transpileDependencies: true,
  4. pages: {
  5. index: {
  6. entry: 'src/main.js',
  7. template: 'public/index.html',
  8. filename: 'index.html',
  9. title: '实景三维在线应用平台',
  10. chunks: ['chunk-vendors', 'chunk-common', 'index']
  11. }
  12. },
  13. devServer: {
  14. port: 8080,
  15. proxy: {
  16. '/oauth/': {
  17. target: 'http://121.43.55.7:10086/oauth',
  18. changeOrigin: true,
  19. pathRewrite: {
  20. '^/oauth': ''
  21. }
  22. },
  23. }
  24. }
  25. })