catlogjs
Version:
Static site generator, translate human readable text format(such as markdown) into html, with a lot of other functions
53 lines (52 loc) • 2.91 kB
JSON
{
"name": "grunt-svgmin",
"version": "0.2.0",
"description": "Minify SVG",
"keywords": [
"gruntplugin",
"svg",
"vector",
"graphic",
"image",
"optimize",
"minify"
],
"homepage": "https://github.com/sindresorhus/grunt-svgmin",
"bugs": {
"url": "https://github.com/sindresorhus/grunt-svgmin/issues"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/grunt-svgmin.git"
},
"scripts": {
"test": "grunt"
},
"dependencies": {
"svgo": "~0.3.1",
"filesize": "~1.8.0"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-clean": "0.4.0",
"grunt-simple-mocha": "~0.4.0"
},
"peerDependencies": {
"grunt": "~0.4"
},
"engines": {
"node": ">=0.8.0"
},
"licenses": {
"type": "MIT"
},
"readme": "# grunt-svgmin [](http://travis-ci.org/sindresorhus/grunt-svgmin)\n\n[Grunt][grunt] tasks to minify SVG using [SVGO](https://github.com/svg/svgo)\n\n> SVG files, especially exported from various editors, usually contains a lot of redundant and useless information such as editor metadata, comments, hidden elements, default or non-optimal values and other stuff that can be safely removed or converted without affecting SVG rendering result.\n\n\n## Getting Started\n\nIf you haven't used [grunt][] before, be sure to check out the [Getting Started][] guide, as it explains how to create a [gruntfile][Getting Started] as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:\n\n```sh\nnpm install --save-dev grunt-svgmin\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-svgmin');\n```\n\n[grunt]: http://gruntjs.com\n[Getting Started]: https://github.com/gruntjs/grunt/wiki/Getting-started\n\n\n## Documentation\n\nSee the [Gruntfile](Gruntfile.js) in this repo for a full example.\n\n\n### Example config\n\n```javascript\ngrunt.initConfig({\n\tsvgmin: {\t\t\t\t\t\t\t\t\t\t\t// Task\n\t\toptions: {\t\t\t\t\t\t\t\t\t\t// Configuration that will be passed directly to SVGO\n\t\t\tplugins: [{\n\t\t\t\tremoveViewBox: false\n\t\t\t}]\n\t\t},\n\t\tdist: {\t\t\t\t\t\t\t\t\t\t\t// Target\n\t\t\tfiles: {\t\t\t\t\t\t\t\t\t// Dictionary of files\n\t\t\t\t'dist/figure.svg': 'app/figure.svg'\t\t// 'destination': 'source'\n\t\t\t}\n\t\t}\n});\n\ngrunt.loadNpmTasks('grunt-svgmin');\ngrunt.registerTask('default', ['svgmin']);\n```\n\n\n## License\n\nMIT License • © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"_id": "grunt-svgmin@0.2.0",
"_from": "grunt-svgmin@~0.2.0"
}