Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

hugemce/oxide-icons-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Various gulp plugins for Oxide icon packs

oxide-icon-packager

A very opinionated plugin which packages svgs in different formats and pipe them through with a predefined directory structure.

gulp.task('icon-packager', function () {
  return gulp.src('src/svg/*.svg')
    .pipe(iconPackager({
      // [Required] Name of the icon pack.
      name: 'default',

      // Logs a diff with @tinymce/oxide-icons-default. Requires that the module is made available.
      diffDefault: true,

      // Icons to ignore when producing a diff. Used in combination with "diffDefault"
      diffIgnore: ['accessibility-check'],

      // Override SVGO options (will be merged with default SVGO options). Use "svgo: false" to completely disable SVGO
      svgo: { floatPrecision: 2 }
    }))
    .pipe(gulp.dest('dist'));
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published