S
S
Sergey2018-04-28 19:57:48
JavaScript
Sergey, 2018-04-28 19:57:48

Gulp Critical for multiple pages?

Good afternoon, what is the correct Инлайнитьstyle for each page? Now, at startup critical, only styles for htmland bodyinto the file with <head></head>. There are up to 10 pages in the project, there is one file with styles and is connected to<head></head>

gulp.task('critical', function () {
  return gulp.src('dist/**/*.php')
   .pipe(critical({base: 'dist/', inline: true, css: ['dist/assets/css/style.css']}))
   .pipe(rev())
   .pipe(gulp.dest('dist'))
   .on('error', notify.onError());;
});

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question