5 Commits

Author SHA1 Message Date
swcs 462a0ab9a7 update readme 2013-11-10 16:42:03 +01:00
swcs 203340f084 update readme 2013-11-10 16:39:48 +01:00
swcs fb4690c8fd update package 2013-11-10 16:35:17 +01:00
Helder Santana 3439f43fb0 update datauri module 2013-11-09 05:39:24 -05:00
swcs 447e3181d9 updat readme 2013-10-31 11:40:57 +01:00
2 changed files with 16 additions and 10 deletions
+10 -7
View File
@@ -2,6 +2,7 @@
> create base64 encoded data-uris for css from images > create base64 encoded data-uris for css from images
This plugin is based on the great npm module _datauri_ by Helder Santana ([heldr](https://github.com/heldr)).
## Getting Started ## Getting Started
@@ -24,7 +25,7 @@ grunt.loadNpmTasks('grunt-datauri');
### Overview ### Overview
The _datauri_ task let's you create css datauri's from images. Supported for all image types. Tested are `png`, `jpg`, `gif`, `bmp`. The _datauri_ task let's you create css datauri's from images. Supported for all image types. Tested are `png`, `jpg`, `gif`, `bmp`.
If you specify `sass` or `scss` files as destination, than [sass placeholders](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#placeholder_selectors_) are used instead of classes. If you specify `sass` or `scss` files as destination, than [Sass placeholders](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#placeholder_selectors_) are used instead of classes.
The class names are generated from the filename. You can specify prefix and suffix for these names. The class names are generated from the filename. You can specify prefix and suffix for these names.
@@ -52,13 +53,13 @@ Default value: `true`
Type: `Boolean` Type: `Boolean`
Default value: `true` Default value: `true`
Output as [placeholders](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#placeholder_selectors_) or simple CSS classes - for SASS/SCSS only. Output as [placeholders](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#placeholder_selectors_) or simple CSS classes - for Sass only.
#### options.variables #### options.variables
Type: `Boolean` Type: `Boolean`
Default value: `false` Default value: `false`
Output as [variables](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#variables_) for SASS/SCSS only. Output as [variables](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#variables_) for Sass only.
#### src #### src
Type: `String` or `Array` Type: `String` or `Array`
@@ -133,14 +134,16 @@ _tmp/base64.sass_
``` ```
## Release History ## Release History
* 2013-11-11 v0.4.0 update datauri dependency
* 2013-10-31 v0.3.2 option to save output to Sass variables
* 2013-05-26 v0.3.1 toggle for usage of placeholders * 2013-05-26 v0.3.1 toggle for usage of placeholders
* 2013-05-17 v0.3.0 filesize check and updated console output * 2013-05-17 v0.3.0 filesize check and updated console output
* 2013-05-16 v0.2.1 bump version for npm * 2013-05-16 v0.2.1 bump version for npm
* 2013-05-16 v0.2.0 add placeholder (sass) support and support for multiple dest-files * 2013-05-16 v0.2.0 add placeholder (Sass) support and support for multiple dest-files
* 2013-05-15 v0.1.0 basic functionality * 2013-05-15 v0.1.0 basic functionality
## Contributors ## Contributors
| [![twitter/artistandsocial](http://gravatar.com/avatar/9c61b1f4307425f12f05d3adb930ba66?s=70)](http://twitter.com/artistandsocial "Follow @artistandsocial on Twitter") | | [![ceee](http://gravatar.com/avatar/9c61b1f4307425f12f05d3adb930ba66?s=70)](https://github.com/ceee "Tobias Klika") | [![davemo](http://gravatar.com/avatar/ead076bf445f9b50e3c094300e4690e9?s=70)](https://github.com/davemo "David Mosher") | [![heldr](http://gravatar.com/avatar/63fb620ee7d14fc91030d4349d189b3e?s=70)](https://github.com/heldr "Helder Santana") |
|---| |---|---|---|
| [Tobias Klika @ceee](https://github.com/ceee) | | [ceee](https://github.com/ceee) | [davemo](https://github.com/davemo) | [heldr](https://github.com/heldr) |
+6 -3
View File
@@ -1,7 +1,7 @@
{ {
"name": "grunt-datauri", "name": "grunt-datauri",
"description": "create base64 encoded data-uris for css from images", "description": "create base64 encoded data-uris for css from images",
"version": "0.3.2", "version": "0.4.0",
"homepage": "https://github.com/ceee/grunt-datauri", "homepage": "https://github.com/ceee/grunt-datauri",
"author": { "author": {
"name": "Tobias Klika", "name": "Tobias Klika",
@@ -29,7 +29,7 @@
}, },
"dependencies": { "dependencies": {
"filesize": "~1.7.9", "filesize": "~1.7.9",
"datauri": "~0.2.0" "datauri": "~0.3.0"
}, },
"devDependencies": { "devDependencies": {
"grunt-contrib-internal": "~0.4.3", "grunt-contrib-internal": "~0.4.3",
@@ -43,6 +43,7 @@
}, },
"keywords": [ "keywords": [
"gruntplugin", "gruntplugin",
"grunt",
"image", "image",
"img", "img",
"base64", "base64",
@@ -52,6 +53,8 @@
"jpeg", "jpeg",
"gif", "gif",
"css", "css",
"convert" "convert",
"tobias klika",
"cee"
] ]
} }