Skip to content

Instantly share code, notes, and snippets.

@bfintal
Created August 29, 2017 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bfintal/1d96d760e465c8766f94b6aa6c5c5c1f to your computer and use it in GitHub Desktop.
Save bfintal/1d96d760e465c8766f94b6aa6c5c5c1f to your computer and use it in GitHub Desktop.
gulp.task( 'icon-font', function() {
return gulp.src( ['page_builder_sandwich/assets/editor-icons/*.svg'] )
.pipe( iconfont( {
fontName: 'pbs', // Required
appendUnicode: true, // Recommended option
formats: ['ttf', 'eot', 'woff'], // Default, 'woff2' and 'svg' are available
timestamp: runTimestamp, // Recommended to get consistent builds when watching files
normalize:true,
fontHeight: 1001
} ) )
.on( 'glyphs', function( glyphs, options ) {
// CSS templating, e.g.
console.log( glyphs, options );
} )
.pipe( gulp.dest( 'page_builder_sandwich/fonts/' ) );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment