opnform/vite.config.js

38 lines
683 B
JavaScript
Raw Normal View History

import { defineConfig } from 'vite'
import laravel from 'laravel-vite-plugin'
import vue from '@vitejs/plugin-vue2'
export default defineConfig({
esbuild: {
minify: true,
minifySyntax: true
},
plugins: [
laravel({
input: [
'resources/js/app.js'
],
valetTls: 'opnform.test'
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false
}
}
})
],
optimizeDeps: {
exclude: [
'vt-notifications', 'vue-tailwind', 'vue-tailwind/dist/vue-tailwind.css'
]
},
resolve: {
alias: {
'~': '/resources/js',
'@': '/resources'
}
}
})