gulp-html-require
v0.0.3
Published
A gulp plugin which can import .html files into .html files
Downloads
1
Readme
gulp-html-require
A gulp plugin which can import .html files into .js files
Usage
First, install gulp-html-require
as a devDependency:
npm install gulp-html-require --save-dev
Then add it to the gulpfile.js
:
var htmlImport = require('gulp-html-require');
gulp.task('import', function () {
gulp.src('./demo/index.js')
.pipe(htmlrequire('./demo/components/'))
.pipe(gulp.dest('dist'));
})
API
htmlImport(string)
string
Type: String
The url of your components
Copyright © 2016 ouyang90