Skip to content

Rendering 0 byte files with async #211

@timint

Description

@timint

I used to have a top level await issue with gulp-iconfont in Node.js v23.3 that I adressed being a problem with ttf2woff2 reported here nfroidure/ttf2woff2#87. The proposed fix by @michenus for ttf2woff2 now makes gulp-fonticon run. But my font files are 0 bytes.

I don't understand what the problem is. The pipe maybe?

import iconfont from 'gulp-iconfont'

gulp.task('iconfont', async function() {
  return iconfont('public_html/assets/fonticons/svgs/**/*.svg', {
    fontName: 'fonticon',
    prependUnicode: true,
    formats: ['ttf', 'woff2'],
    timestamp: Math.round(Date.now() / 1000),
  })
  .pipe(gulp.dest('public_html/assets/fonticons/'))
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions