23 lines
628 B
TypeScript
23 lines
628 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import svgr from 'vite-plugin-svgr';
|
|
import path from 'path';
|
|
|
|
import { miaodaDevPlugin } from "miaoda-sc-plugin";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), svgr({
|
|
svgrOptions: {
|
|
icon: true, exportType: 'named', namedExport: 'ReactComponent', }, }), miaodaDevPlugin()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 3001,
|
|
allowedHosts: ['.dev.flatlogic.app', '.dev.appwizzy.dev', 'localhost', '127.0.0.1']
|
|
}
|
|
}); |