-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
28 lines (27 loc) · 652 Bytes
/
vite.config.ts
File metadata and controls
28 lines (27 loc) · 652 Bytes
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 vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
import { defineConfig } from 'vite';
import { resolve } from 'path';
const port = parseInt(process.env.PORT || '3000'); // Convert port value to number, fallback to default port 3000
// https://vitejs.dev/config/
export default defineConfig({
base: '/Periodic-Table-App/',
server: {
port
},
plugins: [vue(), vueJsx()],
resolve: {
alias: {
'@': resolve(__dirname, 'src')
}
},
build: {
outDir: 'dist',
rollupOptions: {
input: resolve(__dirname, 'index.html')
}
},
optimizeDeps: {
include: ['playwright']
}
});