Update usage instructions
Browse files
readme.md
CHANGED
@@ -61,6 +61,14 @@ Or grab the code from `dist` directory and include it directly.
|
|
61 |
|
62 |
## Usage and Demo
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
Demos and many more usage examples can be found [in the docs page](http://kamranahmed.info/driver.js).
|
65 |
|
66 |
### Highlighting Single Element – [Demo](http://kamranahmed.info/driver.js#single-element-no-popover)
|
|
|
61 |
|
62 |
## Usage and Demo
|
63 |
|
64 |
+
If you are using some sort of module bundler, import the library and the CSS file
|
65 |
+
|
66 |
+
```javascript
|
67 |
+
import Driver from 'driver.js';
|
68 |
+
import 'driver.js/dist/driver.min.css';
|
69 |
+
```
|
70 |
+
otherwise use the `script` and `link` tags to import the JavaScript and CSS files.
|
71 |
+
|
72 |
Demos and many more usage examples can be found [in the docs page](http://kamranahmed.info/driver.js).
|
73 |
|
74 |
### Highlighting Single Element – [Demo](http://kamranahmed.info/driver.js#single-element-no-popover)
|