-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
28 lines (27 loc) · 936 Bytes
/
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
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import tsconfigPaths from 'vite-tsconfig-paths';
import mkcert from 'vite-plugin-mkcert';
export default defineConfig({
base: '/solidjs-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(),
// Allows using the compilerOptions.paths property in tsconfig.json.
// https://www.npmjs.com/package/vite-tsconfig-paths
tsconfigPaths(),
// 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,
},
});