nuxt.config.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import colors from 'vuetify/es5/util/colors'
  2. export default {
  3. // Global page headers: https://go.nuxtjs.dev/config-head
  4. head: {
  5. titleTemplate: '%s - App',
  6. title: 'app',
  7. htmlAttrs: {
  8. lang: 'en'
  9. },
  10. meta: [
  11. { charset: 'utf-8' },
  12. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  13. { hid: 'description', name: 'description', content: '' },
  14. { name: 'format-detection', content: 'telephone=no' }
  15. ],
  16. link: [
  17. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  18. ]
  19. },
  20. // Global CSS: https://go.nuxtjs.dev/config-css
  21. css: [
  22. ],
  23. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  24. plugins: [
  25. ],
  26. // Auto import components: https://go.nuxtjs.dev/config-components
  27. components: true,
  28. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  29. buildModules: [
  30. // https://go.nuxtjs.dev/typescript
  31. '@nuxt/typescript-build',
  32. // https://go.nuxtjs.dev/vuetify
  33. '@nuxtjs/vuetify'
  34. ],
  35. // Modules: https://go.nuxtjs.dev/config-modules
  36. modules: [
  37. // https://go.nuxtjs.dev/axios
  38. '@nuxtjs/axios'
  39. ],
  40. // Axios module configuration: https://go.nuxtjs.dev/config-axios
  41. axios: {
  42. // Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
  43. baseURL: '/'
  44. },
  45. // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
  46. vuetify: {
  47. customVariables: ['~/assets/variables.scss'],
  48. theme: {
  49. dark: true,
  50. themes: {
  51. dark: {
  52. primary: colors.blue.darken2,
  53. accent: colors.grey.darken3,
  54. secondary: colors.amber.darken3,
  55. info: colors.teal.lighten1,
  56. warning: colors.amber.base,
  57. error: colors.deepOrange.accent4,
  58. success: colors.green.accent3
  59. }
  60. }
  61. }
  62. },
  63. // Build Configuration: https://go.nuxtjs.dev/config-build
  64. build: {
  65. }
  66. }