]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Replace ES6 by Webpack in the integration docs (#5555)
authorSebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
Sun, 29 Jul 2018 20:16:10 +0000 (22:16 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Sun, 29 Jul 2018 20:16:10 +0000 (22:16 +0200)
docs/getting-started/integration.md

index 173448f58b4d5fae88b800518a92af9e6fcaab26..95ccbc46d0ae65a3dde575e0e6f7ccc7f4395be9 100644 (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