vue.config.js 941 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. css: {
  12. loaderOptions: {
  13. sass: {
  14. prependData: '@import "@/assets/scss/abstracts/_abstracts.scss";'
  15. }
  16. }
  17. },
  18. publicPath: '/',
  19. devServer: {
  20. clientLogLevel: 'warning',
  21. // historyApiFallback: {
  22. // index: '/',
  23. // disableDotRule: true,
  24. // verbose: true
  25. // },
  26. // hot: true,
  27. // contentBase: 'dist',
  28. // compress: true,
  29. host: '0.0.0.0',
  30. port: 8988,
  31. disableHostCheck: true,
  32. publicPath: '/',
  33. sockHost: 'localhost',
  34. public: 'localhost:8988/',
  35. proxy: {
  36. '^/api': {
  37. target: 'http://0.0.0.0:9000',
  38. logLevel: 'debug'
  39. }
  40. },
  41. // quiet: false,
  42. watchOptions: {
  43. ignored: /node_modules/
  44. }
  45. }
  46. }