fix: iframe resize #224
This commit is contained in:
17
apps/start/vite.embed.config.ts
Normal file
17
apps/start/vite.embed.config.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: './src/scripts/openpanel-embed.ts',
|
||||
output: {
|
||||
format: 'iife',
|
||||
dir: 'public',
|
||||
entryFileNames: 'openpanel-embed.js',
|
||||
name: 'OpenPanelEmbed',
|
||||
},
|
||||
},
|
||||
minify: true,
|
||||
emptyOutDir: false,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user