Files
Rajarshee Chatterjee 20c2b75b01 refactor: Overhaul Plugin Architecture & Playground UI (#1846)
* refactor: Move Plugins Out and Consolidate with Multisrc

* feat: Overhaul Playground UI

* feat: Add Filters to New UI

* feat: Persist Selected Plugin

* feat: Add Direct Parse Novel/Chapter Options and Feedback Toasts

[skip ci]

* feat: UX Improvements

* chore: Update Plugin Path in Publish Workflow

* fix: Add Backward Compatibility

* chore: Update Plugin Publishing Script
2025-10-20 22:54:08 +05:30

37 lines
985 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
import path from 'path';
import { fileURLToPath } from 'url';
import tailwindcss from '@tailwindcss/vite';
import { proxyHandlerMiddle, proxySettingMiddleware } from './proxy';
const dirname = path.dirname(fileURLToPath(import.meta.url));
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
tailwindcss(),
nodePolyfills(),
react({ devTarget: 'es5' }),
{
name: 'proxy',
configureServer: server => {
server.middlewares.use('/settings', proxySettingMiddleware);
server.middlewares.use('/https:', proxyHandlerMiddle);
},
},
],
resolve: {
alias: {
'@': path.resolve(dirname, './src'),
'@plugins': path.resolve(dirname, './plugins'),
'@libs': path.resolve(dirname, './src/libs'),
},
},
server: {
port: 3000,
open: true,
},
});