gulp-text-include
v1.0.0
Published
gulp-text-include
Downloads
1
Readme
This is a component that can import into any html file
--/dist
--/components
--components1.html
--index.html
gulpfile.js
gulpfile.js
var include = require('gulp-text-include')
gulp.task('include',function(){
return gulp.src('index.html')
.pipe(include())
.pipe(gulp.dest('dist'));
});
index.html
<include src="components/components1.html">
<include src="components/components1.html"></include>