Files
sam-manage/vite.config.js
kent 88089aabae chore: htmx eval 경고 억제 설정 추가
- vite.config.js에 rollupOptions.onwarn 설정
- htmx 라이브러리 특성상 eval 사용 필요 (외부 라이브러리)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 16:37:06 +09:00

23 lines
614 B
JavaScript

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);
},
},
},
});