AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

vite.config.ts 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import inertia from '@inertiajs/vite';
  2. import { wayfinder } from '@laravel/vite-plugin-wayfinder';
  3. import babel from '@rolldown/plugin-babel';
  4. import tailwindcss from '@tailwindcss/vite';
  5. import react, { reactCompilerPreset } from '@vitejs/plugin-react';
  6. import laravel from 'laravel-vite-plugin';
  7. import { bunny } from 'laravel-vite-plugin/fonts';
  8. import { defineConfig, lazyPlugins } from 'vite-plus';
  9. export default defineConfig({
  10. plugins: lazyPlugins(() => [
  11. laravel({
  12. input: ['resources/css/app.css', 'resources/js/app.tsx'],
  13. refresh: true,
  14. fonts: [
  15. bunny('Instrument Sans', {
  16. weights: [400, 500, 600],
  17. }),
  18. ],
  19. }),
  20. inertia(),
  21. react(),
  22. babel({
  23. presets: [reactCompilerPreset()],
  24. }),
  25. tailwindcss(),
  26. wayfinder({
  27. formVariants: true,
  28. }),
  29. ]),
  30. server: {
  31. watch: {
  32. ignored: [
  33. '**/.agents/**',
  34. '**/.claude/**',
  35. '**/.cursor/**',
  36. '**/.junie/**',
  37. '**/vendor/**',
  38. ],
  39. },
  40. },
  41. lint: {
  42. ignorePatterns: [
  43. 'vendor/**',
  44. 'node_modules/**',
  45. 'public/**',
  46. 'bootstrap/ssr/**',
  47. 'tailwind.config.js',
  48. 'resources/js/actions/**',
  49. 'resources/js/components/ui/*',
  50. 'resources/js/routes/**',
  51. 'resources/js/wayfinder/**',
  52. ],
  53. options: {
  54. denyWarnings: true,
  55. typeAware: true,
  56. },
  57. },
  58. fmt: {
  59. printWidth: 80,
  60. tabWidth: 4,
  61. singleQuote: true,
  62. semi: true,
  63. singleAttributePerLine: false,
  64. htmlWhitespaceSensitivity: 'css',
  65. ignorePatterns: [
  66. '.github/**',
  67. 'composer.json',
  68. 'resources/js/components/ui/*',
  69. 'resources/views/mail/*',
  70. ],
  71. sortTailwindcss: {
  72. functions: ['clsx', 'cn', 'cva'],
  73. stylesheet: 'resources/css/app.css',
  74. },
  75. },
  76. });