Fix the fonts gulp task to work with v5

This commit is contained in:
Kevin MacMartin 2024-04-01 16:40:55 -04:00
parent 9809d803da
commit 6bd95e31a8

View file

@ -80,8 +80,8 @@ const cssDashboardLibs = [
// Paths to folders containing fonts that should be copied to public/fonts/ // Paths to folders containing fonts that should be copied to public/fonts/
const fontPaths = [ const fontPaths = [
"resources/fonts/**", "resources/fonts/*",
"node_modules/@fortawesome/fontawesome-free/webfonts/**" "node_modules/@fortawesome/fontawesome-free/webfonts/*"
]; ];
// Handle errors // Handle errors
@ -288,7 +288,7 @@ gulp.task("js-dashboard-libs", () => {
// Task to copy fonts // Task to copy fonts
gulp.task("fonts", (done) => { gulp.task("fonts", (done) => {
gulp.src(fontPaths) gulp.src(fontPaths, { encoding: false })
.pipe(plumber(handleError)) .pipe(plumber(handleError))
.pipe(gulp.dest("public/fonts/")); .pipe(gulp.dest("public/fonts/"));