Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

58 linhas
1.4 KiB

  1. 'use strict'
  2. const path = require('path')
  3. function resolve(dir) {
  4. return path.join(__dirname, dir)
  5. }
  6. const name = 'YzxTool' // page title
  7. // If your port is set to 80,
  8. // use administrator privileges to execute the command line.
  9. // For example, Mac: sudo npm run
  10. const port = 9999 // dev port
  11. // All configuration item explanations can be find in https://cli.vuejs.org/config/
  12. module.exports = {
  13. /**a
  14. * You will need to set publicPath if you plan to deploy your site under a sub path,
  15. * for example GitHub Pages. If you plan to deploy your site to https://foo.github.io/bar/,
  16. * then publicPath should be set to "/bar/".
  17. * In most cases please use '/' !!!
  18. * Detail: https://cli.vuejs.org/config/#publicpath
  19. */
  20. publicPath: '/',
  21. outputDir: 'dist',
  22. assetsDir: 'static',
  23. lintOnSave: false,
  24. productionSourceMap: false,
  25. devServer: {
  26. port: port,
  27. open: true,
  28. overlay: {
  29. warnings: false,
  30. errors: true
  31. },
  32. proxy: {
  33. '/api': {
  34. //target: process.env.VUE_APP_BASE_API_TARGET,
  35. target: "/apppp",
  36. changeOrigin: true,
  37. ws: true,
  38. pathRewrite: {
  39. '^/api': ''
  40. }
  41. },
  42. },
  43. },
  44. configureWebpack: {
  45. // provide the app's title in webpack's name field, so that
  46. // it can be accessed in index.html to inject the correct title.
  47. name: name,
  48. resolve: {
  49. alias: {
  50. '@': resolve('src')
  51. }
  52. },
  53. },
  54. }