mirror of
https://github.com/penpot/penpot-mcp.git
synced 2026-04-25 11:18:37 +00:00
34 lines
803 B
TypeScript
34 lines
803 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.VITE_ALLOWED_HOSTS
|
|
? process.env.VITE_ALLOWED_HOSTS.split(",").map((h) => h.trim())
|
|
: ["localhost", "0.0.0.0"],
|
|
},
|
|
});
|