Skip to content

Commit

Permalink
chore: refactor browser usage of library
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlescure committed Feb 10, 2022
1 parent 7b9791b commit 186f517
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -119,8 +119,6 @@ Para más detalles ver las [pruebas](https://github.com/jeanlescure/costa-rica-i
```html
<script src="/dist/costa-rica-iban.min.js"></script>
<script>
var CostaRicaIBAN = window['costa-rica-iban'].default;
var cri = new CostaRicaIBAN('CR06010200009123456789');
document.write(cri.getBankObject());
Expand Down
3 changes: 0 additions & 3 deletions index.html
Expand Up @@ -124,9 +124,6 @@
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.min.js"></script>
<script src="/dist/costa-rica-iban.min.js"></script>
<script>
var CostaRicaIBAN = window['costa-rica-iban'].default;
</script>
</head>
<body>
<form class="form-iban">
Expand Down
4 changes: 2 additions & 2 deletions scripts/build
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

MODULE_NAME=package
GLOBAL_NAME=Package
MODULE_NAME=costa-rica-iban
GLOBAL_NAME=CostaRicaIBAN

rm -rf dist/*
esbuild src/index.ts --bundle --target=chrome60,firefox60,safari12,edge18 \
Expand Down

0 comments on commit 186f517

Please sign in to comment.