gulp-inject-css Inject css file to html Install npm install gulp-inject-css --save-dev Usage const gulp = require('gulp');const injectCSS = require('gulp-inject-css'); gulp.task('inject-css', function() { gulp.src('src/*.html') .pipe(injectCSS()) .pipe(gulp.dest('dist'));}); In the html file, specify the relative path to css <html> ... <!-- inject-css css/main.css --> ...</html>