webpackBasic This is a simple example to understand webpack and its feature install the required package as dev dependencies npm init npm install --save-dev webpack webpack-cli webpack-server command to build and run npm build ->build without deployment npm start ->build and deploy the app to webpack-dev-server For more details click