-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
42 lines (41 loc) · 1.21 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { defineConfig, normalizePath } from "vite";
import { resolve } from "path";
import laravel from "laravel-vite-plugin";
const path = require("path");
export default defineConfig({
server: {
host: "0.0.0.0",
port: 5173,
hmr: {
host: "127.0.0.1",
},
},
resolve: {
alias: {
"@": normalizePath(resolve(__dirname, "resource")),
"~bootstrap": resolve(__dirname, "node_modules/bootstrap"),
"~bootstrap-icons": resolve(
__dirname,
"node_modules/bootstrap-icons"
),
"~perfect-scrollbar": resolve(
__dirname,
"node_modules/perfect-scrollbar"
),
"~@fontsource": resolve(__dirname, "node_modules/@fontsource"),
},
},
plugins: [
laravel({
input: [
"resources/sass/bootstrap.scss",
"resources/sass/themes/dark/app-dark.scss",
"resources/js/app.js",
"resources/css/app.css",
"resources/sass/app.scss",
"resources/sass/pages/auth.scss",
],
refresh: true,
}),
],
});