Skip to content

huicanvie/gulp-text-include

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

gulp-text-include

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published