Skip to content

Commit fb4f067

Browse files
authored
Vue 3 in Laravel
How To Install Vue 3 in Laravel 10 with Vite.
1 parent f624c37 commit fb4f067

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import laravel from 'laravel-vite-plugin';
2727
import vue from '@vitejs/plugin-vue'
2828

2929
export default defineConfig({
30-
base: '/', // Default route is /build directory
3130
plugins: [
3231
laravel({
3332
input: ['resources/css/app.css', 'resources/js/app.js'],
@@ -42,6 +41,16 @@ export default defineConfig({
4241
},
4342
}),
4443
],
44+
// Change base
45+
// base: './', // Default url is /build directory
46+
// Or change assets dir
47+
build: {
48+
rollupOptions: {
49+
output: {
50+
assetFileNames: 'assets/[ext]/[name][extname]',
51+
},
52+
},
53+
},
4554
});
4655
```
4756

0 commit comments

Comments
 (0)