nuxt.config.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. export default defineNuxtConfig({
  2. modules: [
  3. '@nuxtjs/tailwindcss',
  4. '@nuxtjs/color-mode',
  5. '@nuxtjs/google-fonts',
  6. '@nuxt/image',
  7. '@nuxt/eslint',
  8. '@pinia/nuxt',
  9. '@formkit/auto-animate/nuxt',
  10. 'nuxt-booster',
  11. 'nuxt-svgo',
  12. ],
  13. ssr: false,
  14. devtools: { enabled: true },
  15. css: ['animate.css', '~/public/css/config.css'],
  16. vue: {
  17. compilerOptions: {
  18. isCustomElement: (tag: string) => ['lottie-player'].includes(tag),
  19. },
  20. },
  21. runtimeConfig: {
  22. public: {
  23. API_URL: process.env.API_URL || 'http://localhost:8000',
  24. ACCOUNT_LOGIN: process.env.ACCOUNT_LOGIN,
  25. ACCOUNT_PASSWD: process.env.ACCOUNT_PASSWD,
  26. },
  27. },
  28. devServer: {
  29. port: 3000,
  30. },
  31. compatibilityDate: '2024-04-03',
  32. fontMetrics: {
  33. fonts: ['Montserrat'],
  34. },
  35. googleFonts: {
  36. download: true,
  37. families: {
  38. Montserrat: '100..900',
  39. },
  40. },
  41. svgo: {
  42. autoImportPath: '~/assets/icons',
  43. componentPrefix: 'i',
  44. defaultImport: 'component',
  45. svgoConfig: {
  46. plugins: [
  47. {
  48. name: 'convertColors',
  49. params: {
  50. currentColor: true,
  51. },
  52. },
  53. ],
  54. },
  55. },
  56. tailwindcss: {
  57. config: {
  58. theme: {
  59. extend: {
  60. colors: {
  61. primary: '#FF4646',
  62. foreground: '#EDE8D8',
  63. background: {
  64. 100: '#212121',
  65. 200: '#323232',
  66. },
  67. },
  68. },
  69. },
  70. },
  71. },
  72. })