We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb4f067 commit 56a59daCopy full SHA for 56a59da
vue/vite.config.js
@@ -2,8 +2,7 @@ import { defineConfig } from 'vite';
2
import laravel from 'laravel-vite-plugin';
3
import vue from '@vitejs/plugin-vue'
4
5
-export default defineConfig({
6
- base: '/', // Default is /build directory
+export default defineConfig({
7
plugins: [
8
laravel({
9
input: ['resources/js/app.js'],
@@ -18,4 +17,14 @@ export default defineConfig({
18
17
},
19
}),
20
],
+ // Change base url
21
+ // base: './', // Default url path is /build directory
22
+ // Or change assets dir
23
+ build: {
24
+ rollupOptions: {
25
+ output: {
26
+ assetFileNames: 'assets/[ext]/[name][extname]',
27
+ },
28
29
30
});
0 commit comments