npm install htmlwebpackplugin code example Example: html-webpack-plugin npm npm i --save-dev html-webpack-plugin