JS: The code works with WebPack too

pull/192/head
Tpt 3 years ago committed by Thomas Tanon
parent 7bbbe6d8b7
commit 435faba04a
  1. 4
      js/README.md

@ -30,7 +30,7 @@ or with ES modules:
import oxigraph from './node_modules/oxigraph/node.js';
```
To load on an HTML web page:
To load on an HTML web page (for [WebPack 5](https://webpack.js.org/) remove the `<script>` tag and put the code in a JS file):
```html
<script type="module">
import init, * as oxigraph from './node_modules/oxigraph/web.js'
@ -82,6 +82,8 @@ SPARQL:
</script>
```
This example works with WebPack too if you remove the `<script>` tag and put the code in a JS file.
## API
Oxigraph currently provides a simple JS API.

Loading…
Cancel
Save