marketing/vite.config.ts

24 lines
615 B
TypeScript
Raw Normal View History

2026-08-24 10:07:16 +00:00
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import fs from 'node:fs';
2026-08-28 06:47:06 +00:00
export default defineConfig(({mode}) => ({
2026-08-24 10:07:16 +00:00
plugins: [react()],
2026-08-28 06:47:06 +00:00
...(mode != 'production' && {
server: {
host: 'local.hvatilo.ru',
port: 9876,
https: {
cert: fs.readFileSync('local.hvatilo.ru.pem'),
key: fs.readFileSync('local.hvatilo.ru-key.pem'),
},
open: '/src/template.html',
}
}),
2026-08-24 10:07:16 +00:00
input: {
main: './src/template.html',
},
build: {
outDir: 'dist',
},
2026-08-28 06:47:06 +00:00
}));