0.2.1 • Published 8 years ago

ejs4html-loader v0.2.1

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

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)