Update vite.config.js
This commit is contained in:
parent
ea37655c6e
commit
a333f3e766
@ -1,12 +1,18 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import laravel from 'laravel-vite-plugin';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import { resolve } from 'path'
|
||||
import { ensureDir, copy } from 'fs-extra'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
laravel({
|
||||
input: [
|
||||
'resources/sass/app.scss',
|
||||
'resources/sass/landing.scss',
|
||||
'resources/sass/dashboard.scss',
|
||||
'resources/sass/next.css',
|
||||
'resources/js/app.js',
|
||||
],
|
||||
refresh: true,
|
||||
@ -22,7 +28,19 @@ export default defineConfig({
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'~': '/resources/js',
|
||||
'@': '/resources/js',
|
||||
vue: 'vue/dist/vue.esm-bundler.js',
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util']
|
||||
},
|
||||
server: {
|
||||
cors: true,
|
||||
headers: {
|
||||
'Cross-Origin-Opener-Policy': 'same-origin',
|
||||
'Cross-Origin-Embedder-Policy': 'require-corp',
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user