mirror of
https://github.com/mossy1022/Smart-Connections-Visualizer.git
synced 2026-07-22 10:20:27 +00:00
update output folder to be consisent with community plugin; always include sourcemap in bundle
This commit is contained in:
parent
35744afb37
commit
48c4d7d269
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ const copy_to_plugins = {
|
|||
name: 'copy_to_plugins',
|
||||
setup(build) {
|
||||
build.onEnd(() => {
|
||||
const plugin_path = path.join(process.env.OBSIDIAN_PLUGINS_PATH, "smart-connections-graph-view");
|
||||
const plugin_path = path.join(process.env.OBSIDIAN_PLUGINS_PATH, "smart-connections-visualizer");
|
||||
|
||||
if (!fs.existsSync(plugin_path)) {
|
||||
fs.mkdirSync(plugin_path);
|
||||
|
|
@ -61,7 +61,7 @@ const context = await esbuild.context({
|
|||
format: "cjs",
|
||||
target: "es2018",
|
||||
logLevel: "info",
|
||||
sourcemap: prod ? false : "inline",
|
||||
sourcemap: "inline",
|
||||
treeShaking: true,
|
||||
outfile: "main.js",
|
||||
plugins: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue