Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 462a0ab9a7 | |||
| 203340f084 | |||
| fb4690c8fd | |||
| 3439f43fb0 | |||
| 447e3181d9 |
@@ -2,6 +2,7 @@
|
||||
|
||||
> 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
|
||||
@@ -24,7 +25,7 @@ grunt.loadNpmTasks('grunt-datauri');
|
||||
### Overview
|
||||
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.
|
||||
|
||||
@@ -52,13 +53,13 @@ Default value: `true`
|
||||
Type: `Boolean`
|
||||
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
|
||||
Type: `Boolean`
|
||||
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
|
||||
Type: `String` or `Array`
|
||||
@@ -133,14 +134,16 @@ _tmp/base64.sass_
|
||||
```
|
||||
|
||||
## 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-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.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
|
||||
|
||||
|
||||
## Contributors
|
||||
| [](http://twitter.com/artistandsocial "Follow @artistandsocial on Twitter") |
|
||||
|---|
|
||||
| [Tobias Klika @ceee](https://github.com/ceee) |
|
||||
| [](https://github.com/ceee "Tobias Klika") | [](https://github.com/davemo "David Mosher") | [](https://github.com/heldr "Helder Santana") |
|
||||
|---|---|---|
|
||||
| [ceee](https://github.com/ceee) | [davemo](https://github.com/davemo) | [heldr](https://github.com/heldr) |
|
||||
+6
-3
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "grunt-datauri",
|
||||
"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",
|
||||
"author": {
|
||||
"name": "Tobias Klika",
|
||||
@@ -29,7 +29,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"filesize": "~1.7.9",
|
||||
"datauri": "~0.2.0"
|
||||
"datauri": "~0.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt-contrib-internal": "~0.4.3",
|
||||
@@ -43,6 +43,7 @@
|
||||
},
|
||||
"keywords": [
|
||||
"gruntplugin",
|
||||
"grunt",
|
||||
"image",
|
||||
"img",
|
||||
"base64",
|
||||
@@ -52,6 +53,8 @@
|
||||
"jpeg",
|
||||
"gif",
|
||||
"css",
|
||||
"convert"
|
||||
"convert",
|
||||
"tobias klika",
|
||||
"cee"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user