import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import { bunny } from 'laravel-vite-plugin/fonts';
import tailwindcss from '@tailwindcss/vite';

export default defineConfig({
    plugins: [
        laravel({
            input: [
                'resources/css/app.css',
                'resources/js/app.js',
                'resources/css/admin.css',
                'resources/js/admin.js',
                'resources/css/auth.css',
                'resources/css/landing.css',
                'resources/js/landing.js',
                'resources/css/installer.css',
                'resources/js/installer.js',
                'resources/css/receipt.css',
                'resources/css/pay.css',
                'resources/js/pay.js',
                'resources/css/cashier/customer-display.css',
                'resources/js/cashier/customer-display.js',
                'resources/css/kiosk/kiosk.css',
                'resources/js/kiosk/kiosk-app.js',
            ],
            refresh: true,
            fonts: [
                bunny('Inter', {
                    weights: [400, 500, 600, 700],
                }),
                bunny('JetBrains Mono', {
                    weights: [400, 500],
                }),
            ],
        }),
        tailwindcss(),
    ],
    server: {
        watch: {
            ignored: ['**/storage/framework/views/**'],
        },
    },
});
