-
Notifications
You must be signed in to change notification settings - Fork 9
/
vite.config.ts
38 lines (37 loc) · 1.02 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
38
import reactRefresh from '@vitejs/plugin-react-refresh'
import * as path from 'path'
import { defineConfig } from 'vite'
import svgr from 'vite-plugin-svgr'
import tsconfigPaths from 'vite-tsconfig-paths'
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'@terra-money/feather.js': '@terra-money/feather.js/dist/bundle.js',
process: path.resolve(__dirname, 'src/polyfills/process-es6.js'),
'readable-stream': 'vite-compatible-readable-stream',
},
},
//define: {
// 'process.env': {},
//},
server: {
https: {
cert: process.env.LOCALHOST_HTTPS_CERT,
key: process.env.LOCALHOST_HTTPS_KEY,
//@ts-ignore
maxSessionMemory: 100,
peerMaxConcurrentStreams: 300,
},
},
plugins: [reactRefresh(), tsconfigPaths(), svgr()],
//build: {
// sourcemap: true,
// rollupOptions: {
// input: {
// main: path.resolve(__dirname, 'index.html'),
// subpage: path.resolve(__dirname, 'subpage.html'),
// },
// },
//},
})