vite.config.js 676 B

12345678910111213141516171819202122232425262728
  1. import { defineConfig } from 'vite';
  2. import laravel from 'laravel-vite-plugin';
  3. import tailwindcss from '@tailwindcss/vite';
  4. import vue from '@vitejs/plugin-vue';
  5. export default defineConfig({
  6. server: {
  7. host: '0.0.0.0',
  8. hmr: {
  9. host: 'laravel.localhost'
  10. }
  11. },
  12. plugins: [
  13. laravel({
  14. input: ['resources/css/app.css', 'resources/js/app.js'],
  15. refresh: true,
  16. }),
  17. vue({
  18. template: {
  19. transformAssetUrls: {
  20. base: null,
  21. includeAbsolute: false,
  22. },
  23. },
  24. }),
  25. tailwindcss(),
  26. ],
  27. });