nuxt.config.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. export default {
  2. // Global page headers: https://go.nuxtjs.dev/config-head
  3. head: {
  4. title: '汇融数科',
  5. htmlAttrs: {
  6. lang: 'en'
  7. },
  8. meta: [
  9. { charset: 'utf-8' },
  10. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  11. { hid: 'description', name: 'description', content: '' },
  12. { name: 'format-detection', content: 'telephone=no' }
  13. ],
  14. link: [
  15. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  16. ],
  17. script:[
  18. {src:'js/isMobile.js'}
  19. ]
  20. },
  21. // Global CSS: https://go.nuxtjs.dev/config-css
  22. css: [
  23. 'ant-design-vue/dist/antd.css'
  24. ],
  25. target:'static',
  26. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  27. plugins: [
  28. '@/plugins/antd-ui',
  29. '@/plugins/vant-ui'
  30. ],
  31. // Auto import components: https://go.nuxtjs.dev/config-components
  32. components: true,
  33. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  34. buildModules: [
  35. '@nuxt/postcss8'
  36. ],
  37. // Modules: https://go.nuxtjs.dev/config-modules
  38. modules: [
  39. "@nuxtjs/proxy",
  40. "@nuxtjs/axios"
  41. ],
  42. // proxy:{
  43. // '/api':{
  44. // target:'https://official.webapi.bicredit.xin/api',
  45. // secure:false,
  46. // changeOrigin:true
  47. // }
  48. // },
  49. router: {
  50. // middleware:'auth',
  51. // base: '/', //此为根目录,如果有具体目录需求按实际情况写
  52. },
  53. // Build Configuration: https://go.nuxtjs.dev/config-build
  54. build: {
  55. }
  56. }