1.0.0 • Published 10 years ago

@gigwalk/webpack-html-template v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

webpack-html-template Build Status

Stupid simple module to handle templating data for html-webpack-plugin.

Install

$ npm install --save webpack-html-template

Usage

var webpackHtmlTemplate = require('webpack-html-template');

webpackHtmlTemplate('./my-template', {data}, cb);
//=> <html>....

API

webpackHtmlTemplate(template, data ,cb)

template

Required
Type: string

Template file path to read from

data

Data to use with preprocess. Or you can use environment variables.

License

MIT © Gigwalk