generated from Telegram-Mini-Apps/solidjs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.js
32 lines (30 loc) · 915 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 { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import mkcert from 'vite-plugin-mkcert';
export default defineConfig({
base: '/solidjs-js-template',
plugins: [
// Uncomment the following line to enable solid-devtools.
// For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme
// devtools(),
solidPlugin(),
// Create a custom SSL certificate valid for the local machine.
// https://www.npmjs.com/package/vite-plugin-mkcert
mkcert(),
],
build: {
target: 'esnext',
},
publicDir: './public',
server: {
// Exposes your dev server and makes it accessible for the devices in the same network.
host: true,
},
resolve: {
alias: {
'@': resolve(import.meta.dirname, './src'),
}
},
});