GitHub Actions
Deploy from GitHub Actions (2026-03-06 15:20 UTC)
ff6ab6d
raw
history blame contribute delete
476 Bytes
import { defineConfig } from 'vite';
import preact from '@preact/preset-vite';
export default defineConfig({
plugins: [preact()],
build: {
lib: {
entry: 'src/index.jsx',
name: 'SmartChatbot',
formats: ['iife'],
fileName: () => 'chatbot-widget.js',
},
outDir: '../frontend',
emptyOutDir: false, // preserve config.js and other assets
rollupOptions: {
output: {
inlineDynamicImports: true,
},
},
},
});