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/'))
})
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?