mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-05-18 20:08:19 +00:00
- Comprehensive docs: embed snippet, key management, API endpoints, chat/booking/contact flows, lead dedup, reCAPTCHA, branding, deploy checklist, troubleshooting - Widget Preact source archived in packages/widget-src/ (was only on local machine, not tracked in any repo) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
549 B
TypeScript
23 lines
549 B
TypeScript
import { defineConfig } from 'vite';
|
|
import preact from '@preact/preset-vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [preact()],
|
|
build: {
|
|
lib: {
|
|
entry: 'src/main.tsx',
|
|
name: 'HelixWidget',
|
|
fileName: () => 'widget.js',
|
|
formats: ['iife'],
|
|
},
|
|
outDir: '../../helix-engage-server/public',
|
|
emptyOutDir: false,
|
|
minify: 'esbuild',
|
|
rollupOptions: {
|
|
output: {
|
|
inlineDynamicImports: true,
|
|
},
|
|
},
|
|
},
|
|
});
|