-
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.
- Loading branch information
1 parent
220616b
commit 2336336
Showing
1 changed file
with
6 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 |
---|---|---|
|
@@ -32,21 +32,24 @@ See PlayCanvas Web Components in action here: https://playcanvas.github.io/web-c | |
|
||
## Usage 🚧 | ||
|
||
If you are using a bundler (e.g. Rollup), you can install PlayCanvas Web Components and the PlayCanvas Engine using NPM: | ||
### NPM | ||
|
||
PlayCanvas Web Components is available as a package on [NPM](https://www.npmjs.com/package/@playcanvas/web-components). | ||
If you are using a bundler (e.g. Rollup), you can install it (and the PlayCanvas Engine): | ||
|
||
```bash | ||
npm install playcanvas @playcanvas/web-components --save-dev | ||
``` | ||
|
||
Or you can include it directly in your HTML file from a CDN. | ||
|
||
ES Modules: | ||
### ES Modules: | ||
|
||
```html | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@playcanvas/[email protected]/dist/pwc.mjs"></script> | ||
``` | ||
|
||
UMD: | ||
### UMD: | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@playcanvas/[email protected]"></script> | ||
|