fae73534dd
* test * cleanup deleted unused `fetchFile` import replaced fetch with `fetchApi` * eslint * fix * fix multi * Hmm, what to do next. * test URLSearchParams * fix
28 lines
892 B
JavaScript
28 lines
892 B
JavaScript
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'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
});
|