The task is to generate a ready- made font-face using the gulp-fontgen plugin.
Code from gulpfile.js:
gulp.task( 'fonts', ['del-fonts'], function(){ gulp.src(path.src.fonts) .pipe(plumber({errorHandler: onError})) // plumber .pipe(gulpfontgen({ /*collate: true, css_fontpath: path.src.fontface,*/ dest: path.build.fonts })) .pipe(plumber.stop()) .pipe(gulp.dest(path.build.fonts)) .pipe(browserSync.reload({ stream:true })) .pipe(notify({message: 'FONTS task complete', onLast: true})); }); After starting, I tried to wait up to 30 minutes, to no avail, until I interrupt the task. Font folder is not generated.
Console:
[11:23:14] Using gulpfile e: \ OpenServer \ domains \ devboilerplate \ gulpfile.js
[11:23:14] Starting 'del-fonts' ...
[11:23:14] Finished 'del-fonts' after 8.47 ms
[11:23:14] Starting 'fonts' ...
[11:23:14] Finished 'fonts' after 19 ms
^ C Finish batch file execution [Y (yes) / N (no)]? y
Who met similar? Any tips?
If there is another plugin as an alternative or someone knows how to use the nodefacefacegen inside the gulpjs file, it is ready to consider alternatives.