From d91c1787a33f325c029faf6108eec8331d84900f Mon Sep 17 00:00:00 2001 From: JoshuaLai <9044372+JoshuaLai@users.noreply.github.com> Date: Wed, 6 Aug 2025 17:14:01 -0400 Subject: [PATCH 1/2] Update the steps to use webpack --- .../quickstarts/chat/includes/chat-js.md | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/articles/communication-services/quickstarts/chat/includes/chat-js.md b/articles/communication-services/quickstarts/chat/includes/chat-js.md index 386f8fee73c5a..dea32a2f4da8d 100644 --- a/articles/communication-services/quickstarts/chat/includes/chat-js.md +++ b/articles/communication-services/quickstarts/chat/includes/chat-js.md @@ -60,11 +60,25 @@ The `--save` option lists the library as a dependency in your **package.json** f ### Set up the app framework -This article uses parcel to bundle the application assets. Run the following command to install it and list it as a development dependency in your **package.json**: +This article uses webpack to bundle the application assets. Run the following command to install it and list it as a development dependency in your **package.json**: ```console -npm install parcel --save-dev +npm install webpack webpack-cli webpack-dev-server --save-dev ``` + +Create a **webpack.config.js** in the root directory of your project. + +```js +module.exports = { + entry: "./client.js", + output: { + filename: "bundle.js" + }, + devtool: "inline-source-map", + mode: "development" +} +``` + Create an **index.html** file in the root directory of your project. Use this file as a template to add chat capability using the Azure Communication Chat SDK for JavaScript. ```html @@ -76,7 +90,7 @@ Create an **index.html** file in the root directory of your project. Use this fi