nuxt.config.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. import colors from 'vuetify/es5/util/colors'
  2. export default {
  3. // Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
  4. ssr: false,
  5. // Global page headers (https://go.nuxtjs.dev/config-head)
  6. head: {
  7. titleTemplate: '%s - admin',
  8. title: 'admin',
  9. meta: [
  10. { charset: 'utf-8' },
  11. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  12. { hid: 'description', name: 'description', content: '' }
  13. ],
  14. link: [
  15. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  16. ]
  17. },
  18. // Global CSS (https://go.nuxtjs.dev/config-css)
  19. css: [
  20. ],
  21. // Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
  22. plugins: [
  23. '@/plugins/composition-api'
  24. ],
  25. // Auto import components (https://go.nuxtjs.dev/config-components)
  26. components: true,
  27. // Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
  28. buildModules: [
  29. // https://go.nuxtjs.dev/typescript
  30. '@nuxt/typescript-build',
  31. // https://go.nuxtjs.dev/vuetify
  32. '@nuxtjs/vuetify'
  33. ],
  34. // Modules (https://go.nuxtjs.dev/config-modules)
  35. modules: [
  36. '@nuxt/http'
  37. ],
  38. // Vuetify module configuration (https://go.nuxtjs.dev/config-vuetify)
  39. vuetify: {
  40. customVariables: ['~/assets/variables.scss'],
  41. theme: {
  42. dark: false,
  43. themes: {
  44. dark: {
  45. primary: colors.blue.darken2,
  46. accent: colors.grey.darken3,
  47. secondary: colors.amber.darken3,
  48. info: colors.teal.lighten1,
  49. warning: colors.amber.base,
  50. error: colors.deepOrange.accent4,
  51. success: colors.green.accent3
  52. },
  53. light: {
  54. green: '#00ad8e',
  55. light_green: '#a9e0d6',
  56. dark_grey: '#2c3a48',
  57. grey: '#777777',
  58. light_grey: '#f5f5f5',
  59. super_light_grey: '#ecf0f5',
  60. danger: '#f56954',
  61. success: '#00a65a',
  62. warning: '#f39c12',
  63. info: '#3c8dbc'
  64. },
  65. }
  66. }
  67. },
  68. // Build Configuration (https://go.nuxtjs.dev/config-build)
  69. build: {
  70. },
  71. //Port and local host
  72. server: {
  73. port: 3002,
  74. host: '0.0.0.0', // default: localhost,
  75. },
  76. //Poll for hot reloading with docker
  77. watchers: {
  78. webpack: {
  79. aggregateTimeout: 300,
  80. poll: 1000
  81. }
  82. }
  83. }