ejs-prerender-webpack-plugin
Basis
This webpack plugin is based on the ejs-prerender package. See that for more information on configuration options and goals.
Usage
If using default options, simply add the plugin instance to your webpack config's plugins array.
module.exports = {
plugins: [
new EjsPrerenderWebpackPlugin(),
],
};
The following options can be passed into the plugin using an options object:
{
baseDir: process.cwd(),
componentsDir: 'components',
pagesDir: 'pages',
}
For an example of the plugin being used, look at the ejs-starter repository.