nuxt.config.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. export default {
  2. // Target (https://go.nuxtjs.dev/config-target)
  3. target: 'static',
  4. // Global page headers (https://go.nuxtjs.dev/config-head)
  5. head: {
  6. title: 'TBTools',
  7. meta: [
  8. { charset: 'utf-8' },
  9. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  10. { hid: 'description', name: 'description', content: '' }
  11. ],
  12. link: [
  13. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  14. ]
  15. },
  16. // Global CSS (https://go.nuxtjs.dev/config-css)
  17. css: [
  18. 'element-ui/lib/theme-chalk/index.css'
  19. ],
  20. // Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
  21. plugins: [
  22. '@/plugins/element-ui'
  23. ],
  24. // Auto import components (https://go.nuxtjs.dev/config-components)
  25. components: true,
  26. // Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
  27. buildModules: [
  28. ],
  29. // Modules (https://go.nuxtjs.dev/config-modules)
  30. modules: [
  31. // https://go.nuxtjs.dev/axios
  32. '@nuxtjs/axios',
  33. ],
  34. // Axios module configuration (https://go.nuxtjs.dev/config-axios)
  35. axios: {},
  36. // Build Configuration (https://go.nuxtjs.dev/config-build)
  37. build: {
  38. transpile: [/^element-ui/],
  39. }
  40. }