You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
934 B
TypeScript
37 lines
934 B
TypeScript
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],
|
|
},
|
|
},
|
|
});
|