Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
* Fix for #8
Browse files Browse the repository at this point in the history
* Add note for @jsdelivr (soon maybe accepted, [here PR](jsdelivr/jsdelivr#17011)
  • Loading branch information
dalisoft committed Mar 19, 2017
1 parent 4eb0f1c commit 44a96e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,31 @@ Download the [library](https://raw.githubusercontent.com/tweenjs/es6-tween/maste
<script src="js/Tween.js"></script>
```

### CDN-Hosted version

#### Using `unpkg` hosted version

You can also reference a `unpkg`-hosted version in your code, thanks to <a href="https://unpkg.com/#/">unpkg</a>. For example:

```html
<script src="https://unpkg.com/es6-tween/dist/Tween.min.js"></script>
```

#### Using @jsdelivr hosted version (coming soon)

You can also reference a @jsdelivr-hosted version in your code, thanks to @jsdelivr. For example:

```html
<script src="https://cdn.jsdelivr.net/es6-tween/latest/dist/Tween.min.js"></script>
```


### More advanced users might want to...

#### Use `import`

```javascript
import TWEEN from './src/Tween';
import * as TWEEN from './node_modules/es6-tween/src/Tween';
```

#### Use `yarn`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "es6-tween",
"version": "1.0.1",
"version": "1.0.2",
"description": "ES6 implementation of amazing tween.js",
"main": "dist/Tween.js",
"directories": {
Expand Down

0 comments on commit 44a96e9

Please sign in to comment.