Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ejs-webpack-builder

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ejs-webpack-builder

Webpack plugin to build EJS files

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
1
Weekly downloads
 
Created
Source

EJS Webpack Builder

A Webpack Plugin to build EJS files directly.

Install

npm install ejs-webpack-builder --save-dev

Configuration

Define in your webpack configuration file the plugins with an array of file you want to compile

// webpack.config.js

var options = {
  files: ['.src/index.ejs','.src/admin.ejs']
};

module.exports = {
  plugins: [
    new ejsBuilder(options)
  ]
};

Options

You can configure your compilation with additional parameters:

{
  root: __dirname,
  files: [{
    source: {
      name: 'index.ejs',
      dir: './src',
    },
    target: {
      name: 'index.html',
      dir: 'views/'
    },
    parameters: {
      title: 'my site title',
      randomValue: 0
    },
    encoding: 'utf8'
  }]
}

EJS support

Go to the Latest Release

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Keywords

FAQs

Package last updated on 29 Jun 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc