gulp.task('min', () => {
gulp.src(variables.public.js + '/*.js')
.pipe(uglify())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest(variables.public.js));
gulp.src(variables.public.css + '/*.css')
.pipe(combineMq({
beautify: false
}))
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest(variables.public.css));
});
phpQuery::unloadDocuments();
. Вот пример: $pq = phpQuery::newDocument($html);
$projects =[];
foreach ($pq['.project-preview'] as $work) {
$pqwork = pq($work);
$projects[]['name'] = $pqwork['div']->eq(1)->text();
}
phpQuery::unloadDocuments();