mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-05-09 12:51:10 +00:00
22 lines
559 B
TypeScript
22 lines
559 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react-swc';
|
|
import checker from 'vite-plugin-checker';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), checker({ typescript: true })],
|
|
base: '/',
|
|
server: {
|
|
host: true,
|
|
port: 3000, // This is the port which we will use in docker
|
|
// Thanks @sergiomoura for the window fix
|
|
// add the next lines if you're using windows and hot reload doesn't work
|
|
watch: {
|
|
usePolling: true,
|
|
},
|
|
},
|
|
build: {
|
|
sourcemap: true,
|
|
},
|
|
});
|