-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
37 lines (36 loc) · 1.01 KB
/
vite.config.ts
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
/*!
=========================================================
* © 2025 Ronan LE MEILLAT for Les Ailes du Mont-Blanc
=========================================================
This website use:
- Vite, Vue3, FontAwesome 6, TailwindCss 3
- And many others
*/
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import vitePluginFontawesomeminify from '@highcanfly-club/fontawesome'
import vitePluginNeutrafaceMinify from "./typo/NeutrafaceMinifyPlugin.js"
import fs from 'fs'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
vitePluginFontawesomeminify(),
vitePluginNeutrafaceMinify(),
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'~': path.resolve(__dirname, './node_modules'),
'§': path.resolve(__dirname, './'),
},
},
server: {
https: fs.existsSync("./localhost.key") ?
{
key: fs.readFileSync("./localhost.key"),
cert: fs.readFileSync("./localhost.pem"),
} : false,
}
})