nuxt.config.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * @Description:
  3. * @Author: 欧阳承珺
  4. * @LastEditors: 欧阳承珺
  5. * @Date: 2022-10-17 11:06:52
  6. * @LastEditTime: 2022-11-14 13:39:34
  7. */
  8. export default {
  9. // Global page headers: https://go.nuxtjs.dev/config-head
  10. head: {
  11. title: '',
  12. htmlAttrs: {
  13. lang: 'en',
  14. },
  15. meta: [
  16. { charset: 'utf-8' },
  17. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  18. { hid: 'description', name: 'description', content: '' },
  19. { name: 'format-detection', content: 'telephone=no' },
  20. ],
  21. link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
  22. },
  23. // Global CSS: https://go.nuxtjs.dev/config-css
  24. css: [
  25. '@/assets/main.scss',
  26. {src:'element-ui/lib/theme-chalk/index.css'},
  27. ],
  28. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  29. plugins: [
  30. '~/plugins/axios',
  31. {src: '~plugins/element-ui', ssr: false},
  32. {src: '@/plugins/localStorage', ssr: false},
  33. {src: '@/plugins/vueqr', ssr: false},
  34. ],
  35. // Auto import components: https://go.nuxtjs.dev/config-components
  36. components: true,
  37. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  38. buildModules: [
  39. // https://go.nuxtjs.dev/typescript
  40. '@nuxt/typescript-build',
  41. // https://windicss.org/guide/
  42. 'nuxt-windicss',
  43. '@nuxtjs/composition-api/module'
  44. ],
  45. // Modules: https://go.nuxtjs.dev/config-modules
  46. modules: [
  47. '@nuxtjs/axios',
  48. '@nuxtjs/proxy',
  49. ],
  50. axios: {
  51. timeout: 3000,
  52. prefix: '/17pdf-backend-core/',
  53. proxy: process.env.NODE_ENV !== 'production'
  54. },
  55. proxy: {
  56. '/17pdf-backend-core': { target: 'http://81.68.234.235:8999',}
  57. },
  58. // Build Configuration: https://go.nuxtjs.dev/config-build
  59. build: {
  60. vendor: ['element-ui']
  61. },
  62. }