vue.config.js 490 B

12345678910111213141516171819202122
  1. module.exports = {
  2. outputDir:"jiusheng",
  3. lintOnSave: false,
  4. productionSourceMap:false,
  5. publicPath: './',
  6. devServer: {
  7. open: true,
  8. host: 'localhost',
  9. port: 8080,
  10. proxy: {
  11. '/apis': {
  12. target: '', // target host
  13. ws: true, // proxy websockets
  14. changeOrigin: true, // needed for virtual hosted sites
  15. pathRewrite: {
  16. '^/apis': '' // rewrite path
  17. }
  18. },
  19. }
  20. }
  21. }