- 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>
23 lines
614 B
JavaScript
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);
|
|
},
|
|
},
|
|
},
|
|
});
|