how to install webpack and configure it code example Example: how to install webpack npm install webpack webpack-cli --save-dev