mirror of
https://github.com/penpot/penpot-mcp.git
synced 2026-05-29 19:58:22 +00:00
34 lines
821 B
TypeScript
34 lines
821 B
TypeScript
import { defineConfig } from "vite";
|
|
import livePreview from "vite-live-preview";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
livePreview({
|
|
reload: true,
|
|
config: {
|
|
build: {
|
|
sourcemap: true,
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
plugin: "src/plugin.ts",
|
|
index: "./index.html",
|
|
},
|
|
output: {
|
|
entryFileNames: "[name].js",
|
|
},
|
|
},
|
|
},
|
|
preview: {
|
|
port: 4400,
|
|
cors: true,
|
|
allowedHosts: process.env.PENPOT_MCP_PLUGIN_SERVER_ALLOWED_HOSTS
|
|
? process.env.PENPOT_MCP_PLUGIN_SERVER_ALLOWED_HOSTS.split(",").map((h) => h.trim())
|
|
: [],
|
|
},
|
|
});
|