gulp-text-include

1.0.0 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i gulp-text-include

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

5.9 kB

Total Files

9

Last publish

Collaborators

  • huicanvie