mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-03-06 21:28:03 +00:00
laravel inertia
This commit is contained in:
36
laravel-inertia/vite.config.ts
Normal file
36
laravel-inertia/vite.config.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import autoprefixer from 'autoprefixer';
|
||||
import laravel from 'laravel-vite-plugin';
|
||||
import path from 'path';
|
||||
import tailwindcss from 'tailwindcss';
|
||||
import { resolve } from 'node:path';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
laravel({
|
||||
input: ['resources/js/app.ts'],
|
||||
ssr: 'resources/js/ssr.ts',
|
||||
refresh: true,
|
||||
}),
|
||||
vue({
|
||||
template: {
|
||||
transformAssetUrls: {
|
||||
base: null,
|
||||
includeAbsolute: false,
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './resources/js'),
|
||||
'ziggy-js': resolve(__dirname, 'vendor/tightenco/ziggy'),
|
||||
},
|
||||
},
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: [tailwindcss, autoprefixer],
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user