gulp-inject-css

3.0.0 • Public • Published

gulp-inject-css

GitHub Actions Dependency Status devDependency Status

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>

Package Sidebar

Install

npm i gulp-inject-css

Weekly Downloads

29

Version

3.0.0

License

MIT

Unpacked Size

6.41 kB

Total Files

9

Last publish

Collaborators

  • alik0211