21 lines
564 B
TypeScript
21 lines
564 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import ViteYaml from '@modyfi/vite-plugin-yaml';
|
|
import path from 'path';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), ViteYaml()],
|
|
server: {
|
|
port: 3000,
|
|
host: '0.0.0.0',
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'~': path.resolve(__dirname, './src/'),
|
|
// /esm/icons/index.mjs only exports the icons statically, so no separate chunks are created
|
|
'@tabler/icons-react': '@tabler/icons-react/dist/esm/icons/index.mjs',
|
|
},
|
|
},
|
|
});
|