Created
August 29, 2017 15:23
-
-
Save bfintal/1d96d760e465c8766f94b6aa6c5c5c1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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