mirror of
https://github.com/zerosoul/chinese-colors.git
synced 2024-11-21 01:13:53 +08:00
19 lines
375 B
JavaScript
19 lines
375 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import pkg from './package.json';
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: new URL(pkg.homepage).pathname,
|
|
preview: {
|
|
port: 3000,
|
|
host: true,
|
|
},
|
|
server: {
|
|
port: 3006,
|
|
},
|
|
esbuild: {
|
|
drop: ['console', 'debugger'],
|
|
},
|
|
plugins: [react()],
|
|
});
|