Skip to content

Commit

Permalink
feat: minify
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Aug 26, 2023
1 parent a599525 commit 07e3af1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@ if (process.argv.includes("--watch")) {
process.exit(0);
});
} else {
if (process.argv.includes("--minify")) {
options.minify = true;
}

await esbuild.build(options);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"browser": "./out/extension.js",
"contributes": {},
"scripts": {
"vscode:prepublish": "pnpm run compile",
"vscode:prepublish": "pnpm run compile --minify",
"compile": "./esbuild.mjs",
"watch": "./esbuild.mjs --watch",
"run:browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ."
Expand Down

0 comments on commit 07e3af1

Please sign in to comment.