Skip to content

Commit

Permalink
Replace ES6 by Webpack in the integration docs (#5555)
Browse files Browse the repository at this point in the history
  • Loading branch information
slokhorst authored and simonbrunel committed Jul 29, 2018
1 parent 3522686 commit 9a29581
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/getting-started/integration.md
Expand Up @@ -2,13 +2,6 @@

Chart.js can be integrated with plain JavaScript or with different module loaders. The examples below show how to load Chart.js in different systems.

## ES6 Modules

```javascript
import Chart from 'chart.js';
var myChart = new Chart(ctx, {...});
```

## Script Tag

```html
Expand All @@ -18,6 +11,13 @@ var myChart = new Chart(ctx, {...});
</script>
```

## Webpack

```javascript
import Chart from 'chart.js';
var myChart = new Chart(ctx, {...});
```

## Common JS

```javascript
Expand Down

0 comments on commit 9a29581

Please sign in to comment.