Replace ES6 by Webpack in the integration docs (#5555)

This commit is contained in:
Sebastiaan Lokhorst 2018-07-29 22:16:10 +02:00 committed by Simon Brunel
parent 352268616b
commit 9a295816b3

View File

@ -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
@ -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