Skip to content

Commit

Permalink
[docs] updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Levin committed Sep 4, 2023
1 parent a26ab51 commit fb4830c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,18 @@ const vastTracker = new VASTTracker();

A pre-bundled version of VAST Client JS is available: [`vast-client.min.js`](dist/vast-client.min.js) [minified].

You can add the script directly to your page and access the library's components through the `VAST` object.
If you want to use this file, add it to your project and make sure that your main file is in type module as below.

```html
<script src="vast-client-browser.min.js"></script>
<script type="module" src="your-main-file.js"></script>
```

```javascript
const vastClient = new VAST.VASTClient();
const vastParser = new VAST.VASTParser();
const vastTracker = new VAST.VASTTracker();
import {VASTClient, VASTParser, VASTTracker} from "vast-client.min.js"

const vastClient = new VASTClient();
const vastParser = new VASTParser();
const vastTracker = new VASTTracker();
```

#### Node
Expand Down

0 comments on commit fb4830c

Please sign in to comment.