Files
laravel-gost-template/vite.config.ts
2026-06-24 17:20:43 +09:00

47 lines
1.3 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import inertia from '@inertiajs/vite';
import { wayfinder } from '@laravel/vite-plugin-wayfinder';
import tailwindcss from '@tailwindcss/vite';
import vue from '@vitejs/plugin-vue';
import laravel from 'laravel-vite-plugin';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.ts'],
refresh: true,
}),
inertia(),
tailwindcss(),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
wayfinder({
formVariants: true,
}),
],
ssr: {
// NaiveUI и его экосистема поставляются как CJS/имеют браузерные модули —
// под SSR их нужно бандлить (иначе «Named export not found»).
noExternal: [
'naive-ui',
/^@css-render/,
'css-render',
'vueuc',
'seemly',
'treemate',
'evtd',
'vooks',
'vdirs',
'date-fns',
'vue-icons-plus',
'@juggle/resize-observer',
],
},
});