Socket
Socket
Sign inDemoInstall

ejs-prerender-webpack-plugin

Package Overview
Dependencies
152
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ejs-prerender-webpack-plugin

## Basis


Version published
Weekly downloads
3
decreased by-57.14%
Maintainers
1
Install size
23.3 MB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 29 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc