gulp-html2kissy
html2kissy plugin for gulp
Usage
First, install gulp-html2kissy
as a development dependency:
npm install --save-dev gulp-ejs
Then, add it to your gulpfile.js
:
var html2kissy = ; gulp ;
If you want to use gulp-html2kissy
in a watch/livereload task, you may want to avoid gulp exiting on error when, for instance, a partial file is ENOENT
.
Here's an example on how to make it work:
var html2kissy = ;var gutil = ; gulp ;
This will make gulp log the error and continue normal execution.
API
html2kissy(options, settings)
options
Type: hash
Default: {}
settings
Type: hash
Default: {ext: '.html'}
A hash object to configure the plugin.
settings.ext
Type: String
Default: .html
Defines the default file extension that will be appended to the filename.