nuxt.config.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. export default {
  2. // Global page headers: https://go.nuxtjs.dev/config-head
  3. server: {
  4. port: 3000,
  5. host: '0.0.0.0'
  6. },
  7. mode: 'spa',
  8. head: {
  9. title: '',
  10. htmlAttrs: {
  11. lang: 'en'
  12. },
  13. meta: [{
  14. charset: 'utf-8'
  15. },
  16. {
  17. name: 'viewport',
  18. content: 'width=device-width, initial-scale=1'
  19. },
  20. {
  21. hid: 'description',
  22. name: 'description',
  23. content: ''
  24. },
  25. {
  26. name: 'format-detection',
  27. content: 'telephone=no'
  28. }
  29. ],
  30. link: [{
  31. rel: 'icon',
  32. type: 'image/x-icon',
  33. href: '/favicon.ico'
  34. }]
  35. },
  36. // Global CSS: https://go.nuxtjs.dev/config-css
  37. css: [
  38. '@/assets/css/common/icondiy.css',
  39. '@/assets/css/common/iconfont.css'
  40. ],
  41. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  42. plugins: [
  43. '~/plugins/util.js',
  44. '~/plugins/config.js',
  45. '~/plugins/element-ui.js',
  46. { src: '~/plugins/video-player.js', ssr: false },
  47. { src: '~/plugins/route.js', ssr: false }
  48. ],
  49. // Auto import components: https://go.nuxtjs.dev/config-components
  50. components: true,
  51. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  52. buildModules: [
  53. '@nuxtjs/style-resources'
  54. ],
  55. // Modules: https://go.nuxtjs.dev/config-modules
  56. modules: [
  57. '@nuxtjs/axios'
  58. ],
  59. // Build Configuration: https://go.nuxtjs.dev/config-build
  60. build: {
  61. transpile: [
  62. 'vue-piczoom',
  63. 'vue2-countdown'
  64. ],
  65. extractCSS: true,
  66. },
  67. styleResources: {
  68. scss: [
  69. '@/assets/css/common/main.scss',
  70. '@/assets/css/common/element-variables'
  71. ]
  72. },
  73. router: {
  74. base: '/web/'
  75. }
  76. }