Skip to content

Commit

Permalink
docs: add instructions about how to include directly the SDK in a htm…
Browse files Browse the repository at this point in the history
…l page
  • Loading branch information
noandrea authored Jun 21, 2019
1 parent 34b7e52 commit bfc7c8f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ npm i @aeternity/aepp-sdk@next
npm i https://github.com/aeternity/aepp-sdk-js#develop
```

**Note #2:** To include the SDK directly in an html page you can use the `<script>` tag with as follows:

```html
<script src="https://unpkg.com/@aeternity/aepp-sdk/dist/aepp-sdk.browser-script.js"></script>
```
That will use the latest available release, to lock the project to a specific release you can use
```html
<script src="https://unpkg.com/@aeternity/aepp-sdk@VERSION/dist/aepp-sdk.browser-script.js"></script>
```
where `VERSION` is the version number of the SDK you want to use.

### 2. Import (a chosen Flavor)

Import the right [flavor](docs/README.md#flavors--entry-points). For this example with get the `Universal` flavor, which contains all the features of the SDK:
Expand Down

0 comments on commit bfc7c8f

Please sign in to comment.