ejs-prerender-webpack-plugin

1.0.5 • Public • Published

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(), // Base directory to resolve relative paths from
  componentsDir: 'components', // Directory to use for partials
  pagesDir: 'pages', // Directory to use for page structure
}

For an example of the plugin being used, look at the ejs-starter repository.

Readme

Keywords

none

Package Sidebar

Install

npm i ejs-prerender-webpack-plugin

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

4.43 kB

Total Files

4

Last publish

Collaborators

  • wilderbeest