From: Sebastiaan Lokhorst Date: Sun, 29 Jul 2018 20:16:10 +0000 (+0200) Subject: Replace ES6 by Webpack in the integration docs (#5555) X-Git-Tag: v2.7.3~1^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a295816b3ed406ff34d078746d8afd94d0b13a2;p=thirdparty%2FChart.js.git Replace ES6 by Webpack in the integration docs (#5555) --- diff --git a/docs/getting-started/integration.md b/docs/getting-started/integration.md index 173448f58..95ccbc46d 100644 --- a/docs/getting-started/integration.md +++ b/docs/getting-started/integration.md @@ -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, {...}); ``` +## Webpack + +```javascript +import Chart from 'chart.js'; +var myChart = new Chart(ctx, {...}); +``` + ## Common JS ```javascript