vue.config.js 805 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. module.exports = {
  2. chainWebpack: config => {
  3. // GraphQL Loader
  4. config.module
  5. .rule('graphql')
  6. .test(/\.gql$/)
  7. .use('graphql-tag/loader')
  8. .loader('graphql-tag/loader')
  9. .end()
  10. },
  11. publicPath: '/',
  12. devServer: {
  13. clientLogLevel: 'warning',
  14. // historyApiFallback: {
  15. // index: '/',
  16. // disableDotRule: true,
  17. // verbose: true
  18. // },
  19. // hot: true,
  20. // contentBase: 'dist',
  21. // compress: true,
  22. host: '0.0.0.0',
  23. port: 8988,
  24. disableHostCheck: true,
  25. publicPath: '/',
  26. sockHost: 'localhost',
  27. public: 'localhost:8988/',
  28. proxy: {
  29. '^/api': {
  30. target: 'http://0.0.0.0:9000',
  31. logLevel: 'debug'
  32. }
  33. },
  34. // quiet: false,
  35. watchOptions: {
  36. ignored: /node_modules/
  37. }
  38. }
  39. }