-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from imglab-io/v0.1.1
v0.1.1
- Loading branch information
Showing
6 changed files
with
323 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,18 @@ import Imglab from '@imglab/core' | |
Imglab.url('assets', 'example.jpeg', { width: 500, height: 600 }) | ||
``` | ||
|
||
## Browser | ||
### Browser | ||
|
||
If you prefer to use a `script` tag in your code to load `@imglab/core` try to use [UNPKG](https://unpkg.com) or [JSDELIVR](https://www.jsdelivr.com): | ||
|
||
```html | ||
<!-- Using UNPKG --> | ||
<script src="https://unpkg.com/@imglab/[email protected]/dist/imglab.umd.js"></script> | ||
<!-- Or using JDELIVR --> | ||
<script src="https://cdn.jsdelivr.net/npm/@imglab/[email protected]/dist/imglab.umd.js"></script> | ||
``` | ||
|
||
After adding the library you can use it normally: | ||
|
||
```javascript | ||
Imglab.url('assets', 'example.jpeg', { width: 500, height: 600 }) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.