murdercode/laravel-shortcode-plus

View on GitHub
vite.config.js

Summary

Maintainability
A
0 mins
Test Coverage
import {defineConfig} from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
    plugins: [
        laravel({
            input: ['resources/src/css/app.css', 'resources/src/js/app.js'],
            refresh: true,
        }),
    ],
    build: {
        rollupOptions: {
            output: {
                entryFileNames: `[name].js`,
                chunkFileNames: `[name].js`,
                assetFileNames: `[name].[ext]`
            }
        },
        outDir: 'resources/dist/',
    }
});