generated from lorenzo-de-giorgi/laravel-auth-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
24 lines (23 loc) · 792 Bytes
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import {
defineConfig
} from 'vite';
import laravel from 'laravel-vite-plugin';
import path from 'path'; // <-- require path from node
export default defineConfig({
plugins: [
laravel({
// edit the first value of the array input to point to our new sass files and folder.
input: ['resources/scss/app.scss', 'resources/js/app.js'],
refresh: true,
}),
],
// Add resolve object and aliases
resolve: {
alias: {
'~icons': path.resolve(__dirname, 'node_modules/bootstrap-icons/font'),
'~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'),
"~@fortawesome": path.resolve(__dirname, "node_modules/@fortawesome"),
'~resources': '/resources/'
}
}
});