new htmlwebpackplugin( template code example Example: html webpack plugin npm install html-webpack-plugin --save-dev