nuxt.config.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. module.exports = {
  2. mode: 'universal',
  3. /*
  4. ** Headers of the page
  5. */
  6. head: {
  7. title: process.env.npm_package_name || '',
  8. meta: [
  9. { charset: 'utf-8' },
  10. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  11. { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
  12. ],
  13. link: [
  14. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  15. ],
  16. script: [
  17. { src: 'https://kit.fontawesome.com/d33a83f69c.js' }
  18. ]
  19. },
  20. /*
  21. ** Customize the progress-bar color
  22. */
  23. loading: { color: '#fff' },
  24. /*
  25. ** Global CSS
  26. */
  27. css: [
  28. '@/assets/scss/main.scss'
  29. ],
  30. styleResources: {
  31. scss: [
  32. '@/assets/scss/_variables.scss'
  33. ]
  34. },
  35. /*
  36. ** Plugins to load before mounting the App
  37. */
  38. plugins: [
  39. {src: '~/plugins/filters'},
  40. {src: '~/plugins/vuelidate'},
  41. {src: '~/plugins/integrations'},
  42. {src: '~/plugins/components'},
  43. {src: '~/plugins/tooltip'},
  44. {src: '~/plugins/toasted', ssr: false},
  45. {src: '~/plugins/paginate', ssr: false}
  46. ],
  47. /*
  48. ** Nuxt.js modules
  49. */
  50. modules: [
  51. // Doc: https://axios.nuxtjs.org/usage
  52. '@nuxtjs/axios',
  53. 'portal-vue/nuxt',
  54. '@nuxtjs/style-resources'
  55. ],
  56. /*
  57. ** Axios module configuration
  58. ** See https://axios.nuxtjs.org/options
  59. */
  60. axios: {
  61. },
  62. serverMiddleware: [
  63. '~/server/routes/index'
  64. ],
  65. /*
  66. ** Build configuration
  67. */
  68. build: {
  69. /*
  70. ** You can extend webpack config here
  71. */
  72. extend(config, ctx) {
  73. }
  74. }
  75. }