Answer the question
In order to leave comments, you need to log in
Gulp Critical for multiple pages?
Good afternoon, what is the correct Инлайнить
style for each page? Now, at startup critical
, only styles for html
and body
into 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());;
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question