nuxt.config.js 1.3 KB

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