Skip to content

Commit

Permalink
chore: 优化代码构建
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Aug 1, 2023
1 parent e2440f3 commit 123a2d2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions esbuild.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ const args = minimist(process.argv.slice(2))
const isWatch = args.watch || args.w || false
const isServe = args.serve || args.s || false

const baseDir = isWatch
? "/Users/terwer/Documents/mydocs/SiYuanWorkspace/test/data/plugins/siyuan-plugin-publisher"
: isServe
? "/Users/terwer/Documents/mydocs/SiYuanWorkspace/test/data/plugins/siyuan-plugin-publisher"
: "./"
let baseDir
if (isWatch || isServe) {
baseDir = "/Users/terwer/Documents/mydocs/SiYuanWorkspace/test/data/plugins/siyuan-plugin-publisher"
} else {
baseDir = "./"
}
const distDir = isWatch || isServe ? baseDir : path.join(baseDir, "dist")

module.exports = {
Expand Down

0 comments on commit 123a2d2

Please sign in to comment.