forked from LNReader/lnreader-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
28 lines (26 loc) · 946 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import path from 'path';
import { fileURLToPath } from 'url';
const dirname = path.dirname(fileURLToPath(import.meta.url));
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react({ devTarget: 'es5' })],
resolve: {
alias: {
'@libs': path.resolve(dirname, './src/libs'),
'@icons': path.resolve(dirname, './src/icons'),
'@components': path.resolve(dirname, './src/components'),
'@redux': path.resolve(dirname, './src/redux'),
'@provider': path.resolve(dirname, './src/provider'),
'@plugins': path.resolve(dirname, './src/plugins'),
'@hooks': path.resolve(dirname, './src/hooks'),
'@typings': path.resolve(dirname, './src/types'),
'@scripts': path.resolve(dirname, './scripts'),
'@store': path.resolve(dirname, './src/store'),
},
},
server: {
port: 3000,
},
});