diff --git a/packages/charts-components/templates/webpack/README.md b/packages/charts-components/templates/webpack/README.md
index 0381b3e..941d204 100644
--- a/packages/charts-components/templates/webpack/README.md
+++ b/packages/charts-components/templates/webpack/README.md
@@ -1,4 +1,4 @@
-# Charts components ESM Webpack template
+# Charts components Webpack template
📁 **[Click here to download this directory as a ZIP file](https://download-directory.github.io?url=https://github.com/Esri/arcgis-maps-sdk-javascript-samples-beta/tree/main/packages/charts-components/templates/webpack)** 📁
@@ -50,21 +50,18 @@ npm run build
yarn build
```
-## Bundling details
-
#### JS
-We imported the components we need for the coding components by following [Stencil's pattern for integrating components without a JavaScript framework](https://stenciljs.com/docs/javascript).
+Imported the components using [Stencil's pattern for integrating components without a JavaScript framework](https://stenciljs.com/docs/javascript).
```js
import { defineCustomElements as defineChartsElements } from "@arcgis/charts-components/dist/loader";
-defineChartsElements(window, {
- resourcesUrl: "../arcgis-charts/"
-});
+// define custom elements in the browser, and load the assets from the CDN
+defineChartsElements(window, { resourcesUrl: "https://js.arcgis.com/charts-components/4.29/t9n" });
```
-We use [`src/index.js`](./src/index.js) to load our data, define our custom elements, and utilize various kinds of properties in the editor. It is a must to define both the Charts elements.
+Use [`src/index.js`](./src/index.js) to load the data, define custom elements, and utilize various kinds of properties in the editor. Both the Calcite and Charts elements must be defined.
#### CSS
@@ -72,7 +69,7 @@ You can find all the necessary styling in [`src/index.css`](./src/index.css).
#### HTML
-The generation of our `index.html` was simplified by using the HtmlWebpackPlugin in the webpack configuration file.
+Parsing the `index.html` was simplified by using the HtmlWebpackPlugin in the webpack configuration file.
```js
// webpack.config.js
@@ -80,47 +77,15 @@ const HtmlWebPackPlugin = require("html-webpack-plugin");
module.exports = {
plugins: [
- new HtmlWebPackPlugin({
- title: "Charts components",
+ new HtmlWebPackPlugin({
+ title: "Charts components Webpack template",
+ template: "./public/index.html",
+ filename: "./index.html",
chunksSortMode: "none",
- meta: {
- viewport:
- "width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0, user-scalable=no",
- },
- templateContent: `
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/packages/coding-components/templates/webpack/readme.md b/packages/coding-components/templates/webpack/readme.md
index d7ae55a..9db6993 100644
--- a/packages/coding-components/templates/webpack/readme.md
+++ b/packages/coding-components/templates/webpack/readme.md
@@ -1,4 +1,4 @@
-# Coding components ESM Webpack template
+# Coding components Webpack template
📁 **[Click here to download this directory as a ZIP file](https://download-directory.github.io?url=https://github.com/Esri/arcgis-maps-sdk-javascript-samples-beta/tree/main/packages/coding-components/templates/webpack)** 📁
@@ -54,7 +54,7 @@ yarn build
Imported the components using [Stencil's pattern for integrating components without a JavaScript framework](https://stenciljs.com/docs/javascript).
-```
+```js
import { defineCustomElements as defineCalciteElements } from "@esri/calcite-components/dist/loader";
import { defineCustomElements as defineCodingElements } from "@arcgis/coding-components/dist/loader";
@@ -76,37 +76,23 @@ You can find all the necessary styling in [`src/index.css`](./src/index.css). Im
#### HTML
-The generation of our `index.html` was simplified by using the HtmlWebpackPlugin in the webpack configuration file.
+Parsing the `index.html` was simplified by using the HtmlWebpackPlugin in the webpack configuration file.
-```
+```js
// webpack.config.js
const HtmlWebPackPlugin = require("html-webpack-plugin");
module.exports = {
plugins: [
- new HtmlWebPackPlugin({
- title: "Coding components",
- favicon: "./src/icons/favicon.png",
+ new HtmlWebPackPlugin({
+ title: "Coding components Webpack template",
+ template: "./public/index.html",
+ filename: "./index.html",
chunksSortMode: "none",
- meta: {
- viewport:
- "width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0, user-scalable=no",
- },
- templateContent: `
-
-
-
-
-
-
-