mirror of
https://github.com/alberti42/obsidian-plugins-annotations.git
synced 2026-07-22 10:10:24 +00:00
Minified production version
This commit is contained in:
parent
99836806a7
commit
95d2f5252e
1 changed files with 12 additions and 5 deletions
|
|
@ -40,11 +40,18 @@ const context = await esbuild.context({
|
|||
...builtins
|
||||
],
|
||||
format: "cjs",
|
||||
target: "es2018",
|
||||
logLevel: "info",
|
||||
sourcemap: prod ? false : "inline",
|
||||
treeShaking: true,
|
||||
outdir,
|
||||
target: "es2022",
|
||||
logLevel: "info",
|
||||
sourcemap: prod ? false : "inline",
|
||||
minifySyntax: prod, // Enable syntax minification in production
|
||||
minifyWhitespace: prod, // Disable whitespace minification
|
||||
minifyIdentifiers: prod, // Disable identifier minification
|
||||
outdir,
|
||||
define: {
|
||||
"process.env.NODE_ENV": JSON.stringify(prod ? "production" : "development"),
|
||||
},
|
||||
minify: prod,
|
||||
treeShaking: prod,
|
||||
plugins: [
|
||||
copy({
|
||||
assets: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue