nuxt.config.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. /*
  31. ** Plugins to load before mounting the App
  32. */
  33. plugins: [
  34. {src: '~/plugins/filters'},
  35. {src: '~/plugins/vuelidate'},
  36. {src: '~/plugins/integrations'},
  37. {src: '~/plugins/toasted', ssr: false},
  38. {src: '~/plugins/paginate', ssr: false}
  39. ],
  40. /*
  41. ** Nuxt.js modules
  42. */
  43. modules: [
  44. // Doc: https://axios.nuxtjs.org/usage
  45. '@nuxtjs/axios',
  46. 'portal-vue/nuxt'
  47. ],
  48. /*
  49. ** Axios module configuration
  50. ** See https://axios.nuxtjs.org/options
  51. */
  52. axios: {
  53. },
  54. serverMiddleware: [
  55. '~/server/routes/index'
  56. ],
  57. /*
  58. ** Build configuration
  59. */
  60. build: {
  61. /*
  62. ** You can extend webpack config here
  63. */
  64. extend(config, ctx) {
  65. }
  66. }
  67. }