Add TopLiba (#1003)
* test * cleanup deleted unused `fetchFile` import replaced fetch with `fetchApi` * eslint * fix * fix multi * Hmm, what to do next. * test URLSearchParams * fix
This commit is contained in:
+12
-9
@@ -1,21 +1,24 @@
|
||||
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'),
|
||||
'@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: {
|
||||
|
||||
Reference in New Issue
Block a user