Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

ejs4html-loader

0.2.1 • Public • Published

ejs4html-loader for webpack html-loader extension.

EJS loader for webpack [html-loader]. Uses ejs function to render templates.

Installation

npm install ejs4html-loader

Usage

Documentation: Using loaders

 module:{
  loaders: [
  {
  test: /\.ejs$/,
  loader: "html!ejs-render"
  }
  ]
 },
 plugins: [
    new HtmlWebpackPlugin({
        filename: 'index.html',
        template: 'index.ejs', 
        inject: 'body', 
        minify: { 
            removeComments: true,
            collapseWhitespace: true
        }
    })
],

License

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

Install

npm i ejs4html-loader

DownloadsWeekly Downloads

0

Version

0.2.1

License

ISC

Last publish

Collaborators

  • avatar