Add in some config files to holpefully kick off working with proto / grpc.

This commit is contained in:
iamBadgers
2025-07-29 19:52:51 -07:00
parent 2d59048a5e
commit d66c671a91
4 changed files with 1105 additions and 0 deletions

27
vite.config.ts Normal file
View File

@@ -0,0 +1,27 @@
import copy from "rollup-plugin-copy";
import { defineConfig } from "vite";
export default defineConfig({
build: {
sourcemap: true,
rollupOptions: {
input: "src/ts/module.ts",
output: {
// dir: undefined,
// file: "dist/scripts/module.js",
dir: "dist/scripts",
entryFileNames: "module.js",
format: "es",
},
},
},
plugins: [
copy({
targets: [
{ src: "src/module.json", dest: "dist" },
{ src: "src/templates", dest: "dist" },
],
hook: "writeBundle",
}),
],
});