Create a main directory for the project. Switch to the project directory. Type the following at the console:
npm i -D webpack-dev-server html-webpack-plugin path webpack-cli fusioncharts
Entry point for the code is index.js file.
The final directory structure looks as follows:
At the console type:
npx webpack serve --mode=development
View your app in the browser by typing localhost:8080