Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

gulp-critical-injector

0.1.3 • Public • Published

Gulp Critical Injector

Inject CSS, JS file contents using critical-injector.

Usage

const gulp = require('gulp'),
  injector = require('gulp-critical-injector');
 
gulp.task('html', function () {
  return gulp.src('src/*.html')
  .pipe(injector({
    basePath: 'src'
  }))
  .pipe(gulp.dest('build'));
});

Install

npm i gulp-critical-injector

DownloadsWeekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

3.18 kB

Total Files

5

Last publish

Collaborators

  • avatar