Skip to content

Commit

Permalink
update demo page
Browse files Browse the repository at this point in the history
  • Loading branch information
tdjsnelling committed Jun 19, 2024
1 parent a62f625 commit 49e00b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ const defaultOptions: MicrotypeOptions = {

## Demo

TODO
Visit [tdjsnelling.github.io/microtype](https://tdjsnelling.github.io/microtype/test/from-cdn/) for a live demo.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"name": "Tom Snelling",
"url": "https://tdjs.tech"
},
"repository": "https://github.com/tdjsnelling/microtype",
"repository": {
"url": "git+https://github.com/tdjsnelling/microtype.git"
},
"scripts": {
"build:esm": "esbuild src/microtype.ts --bundle --minify --sourcemap --loader:.ts=ts --target=es6 --format=esm --outfile=dist/esm/microtype.js",
"build:browser": "esbuild src/microtype.ts --bundle --minify --sourcemap --loader:.ts=ts --target=es6 --outfile=dist/microtype.js",
Expand Down
3 changes: 2 additions & 1 deletion test/from-cdn/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>microtype demo</title>
<script src="../../dist/microtype.js"></script>
<!-- <script src="../../dist/microtype.js"></script> -->
<script src="https://unpkg.com/microtypejs/dist/microtype.js"></script>
<script>
window.addEventListener("DOMContentLoaded", () => {
const elements = document.querySelectorAll(".microtype p");
Expand Down

0 comments on commit 49e00b7

Please sign in to comment.