grunt-svgmin
Minify SVG
Last updated 4 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install grunt-svgmin 
SYNC missed versions from official npm registry.

grunt-svgmin

Minify SVG using SVGO

Issues with the output should be reported on the SVGO issue tracker.

Install

npm install --save-dev grunt-svgmin

Usage

require('load-grunt-tasks')(grunt);

grunt.initConfig({
	svgmin: {
		options: {
			plugins: [
				{
					name: 'preset-default',
					params: {
						overrides: {
							sortAttrs: false
						}
					}
				}
			]
		},
		dist: {
			files: {
				'dist/unicorn.svg': 'app/unicorn.svg'
			}
		}
	}
});

grunt.registerTask('default', ['svgmin']);

Options

The provided options are passed directly to SVGO.

Note

Per-file savings are only printed in verbose mode (grunt svgmin --verbose).

Current Tags

  • 7.0.0                                ...           latest (4 years ago)

20 Versions

  • 7.0.0                                ...           4 years ago
  • 6.0.1                                ...           6 years ago
  • 6.0.0                                ...           8 years ago
  • 5.0.0                                ...           9 years ago
  • 4.0.0                                ...           10 years ago
  • 3.3.0                                ...           10 years ago
  • 3.2.0                                ...           11 years ago
  • 3.1.2                                ...           11 years ago
  • 3.1.1                                ...           11 years ago
  • 3.1.0                                ...           11 years ago
  • 3.0.0                                ...           11 years ago
  • 2.0.1                                ...           12 years ago
  • 2.0.0                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
  • 0.4.0                                ...           13 years ago
  • 0.3.1                                ...           13 years ago
  • 0.3.0                                ...           13 years ago
  • 0.2.1                                ...           13 years ago
  • 0.2.0                                ...           14 years ago
  • 0.1.0                                ...           14 years ago
Maintainers (1)
Downloads
Total 36
Today 0
This Week 0
This Month 24
Last Day 0
Last Week 2
Last Month 7
Dependencies (4)
Dev Dependencies (5)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE