mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-23 16:34:10 -05:00
Fix the fonts gulp task to work with v5
This commit is contained in:
parent
9809d803da
commit
6bd95e31a8
1 changed files with 3 additions and 3 deletions
|
@ -80,8 +80,8 @@ const cssDashboardLibs = [
|
|||
|
||||
// Paths to folders containing fonts that should be copied to public/fonts/
|
||||
const fontPaths = [
|
||||
"resources/fonts/**",
|
||||
"node_modules/@fortawesome/fontawesome-free/webfonts/**"
|
||||
"resources/fonts/*",
|
||||
"node_modules/@fortawesome/fontawesome-free/webfonts/*"
|
||||
];
|
||||
|
||||
// Handle errors
|
||||
|
@ -288,7 +288,7 @@ gulp.task("js-dashboard-libs", () => {
|
|||
|
||||
// Task to copy fonts
|
||||
gulp.task("fonts", (done) => {
|
||||
gulp.src(fontPaths)
|
||||
gulp.src(fontPaths, { encoding: false })
|
||||
.pipe(plumber(handleError))
|
||||
.pipe(gulp.dest("public/fonts/"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue