Added Webpacker instructions [skip ci]
Andrew
committed Feb 26, 2018
commit fa52a9359ba2eb7cde08ba063b08b738d6ea64d0
Showing 1
changed file with
14 additions
and 0 deletions
README.md
+14
-0
| @@ | @@ -474,6 +474,20 @@ Send a `POST` request to `/ahoy/events` with `Content-Type: application/json` an |
| } | |
| ``` | |
| + | ## Webpacker |
| + | |
| + | For Webpacker, use Yarn to install the JavaScript library: |
| + | |
| + | ```sh |
| + | yarn add ahoy.js |
| + | ``` |
| + | |
| + | Then include it in your pack. |
| + | |
| + | ```es6 |
| + | import ahoy from "ahoy.js"; |
| + | ``` |
| + | |
| ## History | |
| View the [changelog](https://github.com/ankane/ahoy/blob/master/CHANGELOG.md) | |