summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2024-12-18 11:17:21 +0100
committerJoel Klinghed <the_jk@opera.com>2024-12-18 11:17:21 +0100
commitcfead8b936a6f6940bb0eb26bd4afa1192e023e6 (patch)
tree0f14c5c5a757bb334d6a64aae6ae9f0757fd7ba8
parentd7772a3381a83aabc4851af7b433f095f6be789c (diff)
Bundle clicks.ts as well
-rw-r--r--demo/index.html2
-rw-r--r--package.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/demo/index.html b/demo/index.html
index 0e09b12..9243d79 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -5,7 +5,7 @@
<script type="text/javascript">
window.clicksWsUrl = "ws://127.0.0.1:8001"
</script>
- <script type="text/javascript" src="../build/clicks.js"></script>
+ <script type="text/javascript" src="../build/clicks.min.js"></script>
<script type="text/javascript">
function onLink() {
alert('Link clicked');
diff --git a/package.json b/package.json
index f3fcb87..991996c 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "0.1.0",
"scripts": {
"build": "tsc",
- "bundle": "esbuild build/clicks_display.js --bundle --minify --sourcemap --target=es2020 --outfile=build/clicks_display.min.js",
+ "bundle": "esbuild build/clicks_display.js --bundle --minify --sourcemap --target=es2020 --outfile=build/clicks_display.min.js && esbuild build/clicks.js --bundle --minify --sourcemap --target=es2020 --outfile=build/clicks.min.js",
"format": "prettier --write src/*.ts",
"lint": "eslint src",
"postinstall": "patch-package"