grunt-svgatlas

0.0.1 • Public • Published

grunt-svgatlas

A simple task to pack multiple svg file into one binary packed svg file.

Installation

$ sudo npm install grunt-svgatlas --save-dev

Usage

grunt.initConfig({
  svgatlas:
      {
          main:{
              dst:'resources/atlas/atlas',
              src:['resources/svg/*.svg'],
              png:true,
              prettify:true
          }
      }
});

// load task.
grunt.loadNpmTasks('grunt-svgatlas');

Options

  • dst: Destination filename without extension
  • src: Source svg's to be included
  • png: If true, also generates a png version of the spritesheet
  • prettify: if true .json output will be prettified

Readme

Keywords

Package Sidebar

Install

npm i grunt-svgatlas

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • xperiments