20 lines
396 B
TypeScript
20 lines
396 B
TypeScript
|
|
import { defineConfig } from 'vite';
|
||
|
|
import react from '@vitejs/plugin-react-swc';
|
||
|
|
import gzipPlugin from 'rollup-plugin-gzip';
|
||
|
|
// @ts-ignore
|
||
|
|
import config from './src/js/config';
|
||
|
|
|
||
|
|
// https://vitejs.dev/config/
|
||
|
|
export default defineConfig({
|
||
|
|
server: {
|
||
|
|
host: '0.0.0.0',
|
||
|
|
port: 4000,
|
||
|
|
},
|
||
|
|
plugins: [react()],
|
||
|
|
build: {
|
||
|
|
rollupOptions: {
|
||
|
|
plugins: [gzipPlugin()],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|