24 lines
409 B
TypeScript
24 lines
409 B
TypeScript
import { defineConfig } from "vite";
|
|
import livePreview from "vite-live-preview";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
livePreview({
|
|
reload: true,
|
|
}),
|
|
],
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
plugin: "src/plugin.ts",
|
|
index: "./index.html",
|
|
},
|
|
output: {
|
|
entryFileNames: "[name].js",
|
|
},
|
|
},
|
|
},
|
|
preview: {
|
|
port: 4400,
|
|
},
|
|
});
|