template-ejs-loader (npm): ejs-loader with webpack5 support. Chain it to html-loader and use it with html-webpack-plugin.
Keywords: ejs|loader|html|webpack|webpack5|template|require|javascript