Files
sam-manage/vite.config.js

23 lines
614 B
JavaScript
Raw Normal View History

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true,
}),
],
build: {
rollupOptions: {
onwarn(warning, warn) {
// htmx의 eval 사용 경고 억제 (라이브러리 특성상 필요)
if (warning.code === 'EVAL' && warning.id?.includes('htmx')) {
return;
}
warn(warning);
},
},
},
});