Skip to content

alampros/grunt-extract-sketch-svgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-extract-sketch-svgs

Extract artboards from sketch files to SVGs

You need to provide the sketchtool binary. See sketchapp.com/tool for where to find it.

extract-sketch task

Run this task with the grunt extract-sketch command.

Options

binpath

Type: String
Default: '/Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool'

The path to to the sketchtool binary.

pageNameExportRegex

Type: String
Default: '- EXPORT - '

Will only export artboards from pages that match this prefix.

Usage Examples

'extract-sketch': {
  options: {
    binpath: '/opt/bin/sketchtool',
    pageNameExportRegex: 'icon-',
  },
  main: {
    files: [{
      src: 'src/icons.sketch',
      dest: 'build',
    }],
  },
},

About

Extract artboards as svgs for conversion to webfonts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published