mirror of
https://github.com/Stability-AI/StableStudio.git
synced 2026-05-24 10:45:44 +08:00
Initial commit
This commit is contained in:
21
packages/stablestudio-plugin-example/scripts/Build.ts
Normal file
21
packages/stablestudio-plugin-example/scripts/Build.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import * as ESBuild from "esbuild";
|
||||
|
||||
const main = async () => {
|
||||
try {
|
||||
await ESBuild.build({
|
||||
entryPoints: ["src/index.ts"],
|
||||
outdir: "lib",
|
||||
bundle: true,
|
||||
sourcemap: true,
|
||||
minify: true,
|
||||
splitting: true,
|
||||
format: "esm",
|
||||
target: ["esnext"],
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
}
|
||||
};
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user