generated from Telegram-Mini-Apps/reactjs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
26 lines (24 loc) · 918 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
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
import react from '@vitejs/plugin-react-swc';
// import basicSsl from '@vitejs/plugin-basic-ssl';
// https://vitejs.dev/config/
export default defineConfig({
base: '/reactjs-template',
plugins: [
// Allows using React dev server along with building a React application with Vite.
// https://npmjs.com/package/@vitejs/plugin-react-swc
react(),
// Allows using the compilerOptions.paths property in tsconfig.json.
// https://www.npmjs.com/package/vite-tsconfig-paths
tsconfigPaths(),
// Allows using self-signed certificates to run the dev server using HTTPS.
// https://www.npmjs.com/package/@vitejs/plugin-basic-ssl
// basicSsl(),
],
publicDir: './public',
server: {
// Exposes your dev server and makes it accessible for the devices in the same network.
host: true,
},
});