0.2.1 • Published 8 years ago
ejs4html-loader v0.2.1
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
module:{
loaders: [
{
test: /\.ejs$/,
loader: "html!ejs-render"
}
]
},
plugins: [
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.ejs',
inject: 'body',
minify: {
removeComments: true,
collapseWhitespace: true
}
})
],