Answer the question
In order to leave comments, you need to log in
How to get file content like css in gulp.src?
How to get the contents of *.css files? For example write the contents of each file into an array?
function build() {
return gulp.src('./src/css/*.css')
....
/* Тут функция обработчик которая получает эти файлы */
}
Answer the question
In order to leave comments, you need to log in
There is such a thing as gulp-tap , which can be used to solve your problem.
But in general - the contents of files can be obtained regardless of collectors and task runners using fs.readFile or fs.readFileSync ( example ).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question