nuxt.config.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. },
  17. /*
  18. ** Customize the progress-bar color
  19. */
  20. loading: { color: '#fff' },
  21. /*
  22. ** Global CSS
  23. */
  24. css: [
  25. '@/assets/scss/main.scss'
  26. ],
  27. /*
  28. ** Plugins to load before mounting the App
  29. */
  30. plugins: [
  31. {src: '~/plugins/filters'},
  32. {src: '~/plugins/vuelidate'},
  33. {src: '~/plugins/toasted', ssr: false},
  34. ],
  35. /*
  36. ** Nuxt.js modules
  37. */
  38. modules: [
  39. // Doc: https://axios.nuxtjs.org/usage
  40. '@nuxtjs/axios',
  41. ],
  42. /*
  43. ** Axios module configuration
  44. ** See https://axios.nuxtjs.org/options
  45. */
  46. axios: {
  47. },
  48. serverMiddleware: [
  49. '~/server/routes/index'
  50. ],
  51. /*
  52. ** Build configuration
  53. */
  54. build: {
  55. /*
  56. ** You can extend webpack config here
  57. */
  58. extend(config, ctx) {
  59. }
  60. }
  61. }