Skip to content

Commit

Permalink
chore: prepare web-workers example for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsinclair committed Oct 29, 2024
1 parent a6f8f59 commit 8493f32
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
9 changes: 8 additions & 1 deletion examples/web-workers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>jSquash with Web Workers example</title>
</head>
<body>
<h1>Image Converter (powered by WebWorker)</h1>
<h1>Image Converter (powered by Web Workers)</h1>
<form>
<label>
Choose your source image:
Expand Down Expand Up @@ -35,6 +35,13 @@ <h1>Image Converter (powered by WebWorker)</h1>
</form>
<p>Output Image (Right click to save)</p>
<div id="preview"></div>
<footer>
<hr />
<p>
Example app using <a href="https://github.com/jamsinclair/jsquash">jSquash</a> image codecs.
View the source code on <a href="https://github.com/jamsinclair/jSquash/tree/main/examples/web-workers">GitHub</a>.
</p>
</footer>
<script type="module" src="./main.js"></script>
</body>
</html>
14 changes: 7 additions & 7 deletions examples/web-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "vite build && cp _headers dist/",
"preview": "vite preview"
},
"dependencies": {
"@jsquash/avif": "^1.1.0",
"@jsquash/jpeg": "^1.2.0",
"@jsquash/jxl": "^1.0.0",
"@jsquash/png": "^2.0.0",
"@jsquash/webp": "^1.2.0"
"@jsquash/avif": "^1.3.0",
"@jsquash/jpeg": "^1.4.0",
"@jsquash/jxl": "^1.1.0",
"@jsquash/png": "^3.0.1",
"@jsquash/webp": "^1.4.0"
},
"devDependencies": {
"vite": "^5.0.0"
"vite": "^5.4.10"
}
}

0 comments on commit 8493f32

Please sign in to comment.