Untitled

mail@pastecode.io avatar
unknown
javascript
5 months ago
749 B
4
Indexable
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import path from 'path';

export default defineConfig({
    plugins: [
        laravel({
            input: ['resources/css/app.css', 'resources/js/app.js'],
            refresh: true,
        }),
    ],
    build: {
        outDir: 'public/build',
        rollupOptions: {
            input: {
                main: path.resolve(__dirname, 'resources/css/app.css'),
                app: path.resolve(__dirname, 'resources/js/app.js'),
            },
            output: {
                entryFileNames: 'assets/[name].js',
                chunkFileNames: 'assets/[name].js',
                assetFileNames: 'assets/[name].[ext]',
            },
        },
    },
});
Leave a Comment