-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
32 lines (29 loc) · 908 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
25
26
27
28
29
30
31
32
import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
// import vue2 from '@vitejs/plugin-vue2';
const domain = "wrd.test";
const homedir = require("os").homedir();
export default defineConfig({
server: {
https: {
key: homedir + "/.config/valet/Certificates/" + domain + ".key",
cert: homedir + "/.config/valet/Certificates/" + domain + ".crt",
},
// https: true,
host: domain,
},
plugins: [
laravel({
input: [
"resources/css/site.css",
"resources/js/site.js",
// Control Panel assets.
// https://statamic.dev/extending/control-panel#adding-css-and-js-assets
// 'resources/css/cp.css',
// 'resources/js/cp.js',
],
refresh: true,
}),
// vue2(),
],
});