first commit
This commit is contained in:
46
vite.config.ts
Normal file
46
vite.config.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
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',
|
||||
],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user