Wondering what’s next for npm?Check out our public roadmap! »

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

4

Version

0.1.3

License

MIT

Unpacked Size

3.18 kB

Total Files

5

Last publish

Collaborators

  • avatar