nuxt.config.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. export default {
  2. // Global page headers: https://go.nuxtjs.dev/config-head
  3. head: {
  4. title: 'compdfkit_web_cn',
  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. },
  18. // Global CSS: https://go.nuxtjs.dev/config-css
  19. css: [
  20. 'element-ui/lib/theme-chalk/index.css',
  21. ],
  22. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  23. plugins: [
  24. '@/plugins/element-ui',
  25. ],
  26. // Auto import components: https://go.nuxtjs.dev/config-components
  27. components: true,
  28. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  29. buildModules: [
  30. // https://go.nuxtjs.dev/eslint
  31. ],
  32. // Modules: https://go.nuxtjs.dev/config-modules
  33. modules: [
  34. // https://go.nuxtjs.dev/axios
  35. '@nuxtjs/axios',
  36. ],
  37. // Axios module configuration: https://go.nuxtjs.dev/config-axios
  38. axios: {
  39. // Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
  40. baseURL: '/',
  41. },
  42. // Build Configuration: https://go.nuxtjs.dev/config-build
  43. build: {
  44. transpile: [/^element-ui/],
  45. },
  46. }