forked from Chabloz/a-frame-vite-vue-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
35 lines (32 loc) · 720 Bytes
/
vite.config.js
File metadata and controls
35 lines (32 loc) · 720 Bytes
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
import { defineConfig } from "vite";
import basicSsl from "@vitejs/plugin-basic-ssl";
import vue from "@vitejs/plugin-vue";
const fullReloadPlugin = {
handleHotUpdate({ server }) {
server.ws.send({ type: "full-reload" });
return [];
},
};
export default defineConfig(({ command, mode }) => {
const config = {
base: "/miguel/",
plugins: [
basicSsl(),
vue({
template: {
compilerOptions: {
// Allow A-Frame elements to be in Vue template
isCustomElement: (tag) => tag.startsWith("a-"),
},
},
}),
fullReloadPlugin,
],
resolve: {
alias: {
"@": "/src",
},
},
};
return config;
});