VTable/docs/vite.config.js
2023-08-30 18:50:00 +08:00

24 lines
478 B
JavaScript

import pkg from '../packages/vtable/package.json';
import * as path from 'path';
import react from '@vitejs/plugin-react';
export default {
optimizeDeps: {},
server: {
host: '0.0.0.0',
port: 3020,
https: !!process.env.HTTPS,
open: true
},
define: {
__DEV__: true,
__VERSION__: JSON.stringify(pkg.version)
},
resolve: {
alias: {
'@visactor/vtable': path.resolve('../packages/vtable/src/index.ts')
}
},
plugins: [react()]
};