mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
refactor plugin, split into modules
This commit is contained in:
12
build.js
12
build.js
@@ -31,4 +31,16 @@ Promise.all([
|
||||
plugins: [sveltePlugin({ compilerOptions: { css: "injected" } })],
|
||||
logLevel: "info",
|
||||
}),
|
||||
|
||||
// Build ignis-bridge plugin
|
||||
esbuild.build({
|
||||
entryPoints: [path.join(__dirname, "plugin", "src", "main.js")],
|
||||
bundle: true,
|
||||
outfile: path.join(__dirname, "plugin", "main.js"),
|
||||
format: "cjs",
|
||||
platform: "browser",
|
||||
target: ["chrome90"],
|
||||
external: ["obsidian"],
|
||||
logLevel: "info",
|
||||
}),
|
||||
]).catch(() => process.exit(1));
|
||||
|
||||
Reference in New Issue
Block a user