Files
lnreader-plugins/vite.config.js
T
Rider21 fae73534dd 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
2024-06-30 11:28:11 +07:00

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,
},
});