nuxt.config.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. const URL = 'http://localhost:3000'
  2. export default {
  3. mode: 'universal',
  4. /*
  5. ** Headers of the page
  6. */
  7. head: {
  8. title: process.env.npm_package_name || '',
  9. meta: [
  10. { charset: 'utf-8' },
  11. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  12. { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
  13. ],
  14. link: [
  15. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
  16. { rel: 'stylesheet', href: '/css/font-awesome/css/all.css' },
  17. { rel: 'stylesheet', href: '/css/default.css' }
  18. ]
  19. },
  20. /*
  21. ** Customize the progress-bar color
  22. */
  23. loading: { color: '#fff' },
  24. /*
  25. ** Global CSS
  26. */
  27. css: [
  28. ],
  29. /*
  30. ** Plugins to load before mounting the App
  31. */
  32. plugins: [
  33. ],
  34. /*
  35. ** Nuxt.js dev-modules
  36. */
  37. buildModules: [
  38. ],
  39. /*
  40. ** Nuxt.js modules
  41. */
  42. modules: [
  43. // Doc: https://bootstrap-vue.js.org
  44. 'bootstrap-vue/nuxt',
  45. // Doc: https://axios.nuxtjs.org/usage
  46. '@nuxtjs/axios',
  47. '@nuxtjs/pwa',
  48. ],
  49. /*
  50. ** Axios module configuration
  51. ** See https://axios.nuxtjs.org/options
  52. */
  53. axios: {
  54. proxy: true,
  55. baseURL: URL
  56. },
  57. /*
  58. ** Build configuration
  59. */
  60. build: {
  61. /*
  62. ** You can extend webpack config here
  63. */
  64. extend (config, ctx) {
  65. }
  66. }
  67. }