nuxt.config.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. export default {
  2. mode: 'spa',
  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. { rel: 'stylecss', href: '//fonts.googleapis.com/css?family=Roboto:400,500,700,400italic|Material+Icons' }
  16. ]
  17. },
  18. /*
  19. ** Customize the progress-bar color
  20. */
  21. loading: { color: '#9ccc65', height: '10px' },
  22. /*
  23. ** Global CSS
  24. */
  25. css: [
  26. { src: 'vue-material/dist/vue-material.min.css', lang: 'css' },
  27. { src: '~/assets/theme.scss', lang: 'scss' }
  28. ],
  29. /*
  30. ** Plugins to load before mounting the App
  31. */
  32. plugins: [
  33. { src: '~/plugins/vue-material' },
  34. { src: '~/plugins/axios' }
  35. ],
  36. /*
  37. ** Nuxt.js dev-modules
  38. */
  39. buildModules: [
  40. // Doc: https://github.com/nuxt-community/eslint-module
  41. '@nuxtjs/eslint-module'
  42. ],
  43. /*
  44. ** Nuxt.js modules
  45. */
  46. modules: [
  47. // Doc: https://axios.nuxtjs.org/usage
  48. '@nuxtjs/axios'
  49. ],
  50. /*
  51. ** Axios module configuration
  52. ** See https://axios.nuxtjs.org/options
  53. */
  54. axios: {
  55. credentials: true
  56. },
  57. env: {
  58. NEWS_API_KEY: '2d199fb5095b44869cb4311a7a0366d2'
  59. },
  60. /*
  61. ** Build configuration
  62. */
  63. build: {
  64. /*
  65. ** You can extend webpack config here
  66. */
  67. extend (config, ctx) {
  68. }
  69. }
  70. }