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)

Readme

Keywords

Package Sidebar

Install

npm i ejs4html-loader

Weekly Downloads

1

Version

0.2.1

License

ISC

Last publish

Collaborators

  • yecheng