webpack in npm code example Example 1: npm install webpack npm install --save-dev webpack Example 2: npm webpack plugin npm i npm-install-webpack-plugin