d36e8ec85f
* remove test_web * integrate reactjs-vite * update lint-staged * simple cors proxy server which handles cookies and redirections * overrider global fetch with proxy call * simple examples for set cookies and fetch request * app bar * add redux * loadPlugins. error: cant load urlencode module * add ts-node for transforming * plugin search & select * plugin slice * accordion components * path item & popular novel * optional for filters * search novel * parse novel * parseChapter * update cookies * default filters * fix: import path * bundler module resolution * new json_plugins * fix: generate multisrc (missing filters) * fix: host scripts * fix: plugin code path * remove typechecking action
25 lines
810 B
JavaScript
25 lines
810 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react-swc';
|
|
import path from 'path';
|
|
|
|
// 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,
|
|
},
|
|
});
|