nuxt.config.js 1.4 KB

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