-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
42 lines (42 loc) · 2.8 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"name": "grunt-image-embed",
"description": "Grunt task for embedding images as base64 data URIs inside your stylesheets.",
"version": "0.0.2",
"homepage": "",
"author": {
"name": "Eric Hynds",
"email": "[email protected]",
"url": "http://erichynds.com"
},
"repository": {
"type": "git",
"url": "git://github.com/ehynds/grunt-image-embed.git"
},
"bugs": {
"url": "https://github.com/ehynds/grunt-image-embed/issues"
},
"main": "grunt.js",
"bin": {
"grunt-image-embed": "bin/grunt-image-embed"
},
"engines": {
"node": "*"
},
"scripts": {
"test": "grunt test"
},
"dependencies": {
"grunt": "0.3.x",
"mime": "1.2.x"
},
"keywords": [
"gruntplugin",
"base64",
"data URI",
"css",
"image"
],
"readme": "This task converts all images found within a stylersheet (those within a `url( ... )` declaration) into base64-encoded data URI strings.\n\n## Features\n\n* Supports both local & remote images.\n* Ability to specify a size limit. Default is 32kb, or IE8's limit.\n* Existing data URIs will be ignored.\n* Skip specific images by specifying a directive comment.\n* Includes two helpers: `encode_stylesheet` to encode a stylesheet, and `encode_image` to encode an image.\n\n## Getting Started\n\nInstall this plugin with: `grunt install grunt-image-embed`\n\nNext, add this line to your project's `grunt.js` file:\n\n`grunt.loadNpmTasks(\"grunt-image-embed\");`\n\nLastly, add the configuration settings to your grunt.js file.\n\n## Documentation\n\nThis task has two required properties, `src` and `dest`. `src` is the path to your stylesheet and `dest` is the file this task will write to (relative to the grunt.js file). If this file already exists **it will be overwritten**.\n\nAn example configuration looks like this:\n\n```` javascript\ngrunt.initConfig({\n imageEmbed: {\n dist: {\n src: [ \"css/styles.css\" ],\n dest: \"css/output.css\"\n }\n }\n});\n````\n\n### Optional Configuration Properties\n\nImageEmbed can be customized by specifying the following options:\n\n* `maxImageSize`: The maximum size of the base64 string in bytes. This defaults to `32768`, or IE8's limit. Set this to `0` to remove the limit and allow any size string.\n* `baseDir`: If you have absolute image paths in your stylesheet, the path specified in this option will be used as the base directory.\n\n### Skipping Images\n\nSpecify that an image should be skipped by adding the following comment *after* the image:\n\n`background: url(image.gif); /*ImageEmbed:skip*/`\n\n## Known Issues\n\n* Only one image per line can be read at the moment, so run this task before minifying your CSS file.\n\n## License\n\nCopyright (c) 2012 Eric Hynds (@erichynds)\nLicensed under the MIT License.\n",
"_id": "[email protected]",
"_from": "grunt-image-embed"
}