Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aadrian/gradle-smartsprites
Gradle Plug-in for SmartSprites
https://github.com/aadrian/gradle-smartsprites
gradle gradle-plugin gradle-smartsprites smartsprites
Last synced: about 1 month ago
JSON representation
Gradle Plug-in for SmartSprites
- Host: GitHub
- URL: https://github.com/aadrian/gradle-smartsprites
- Owner: aadrian
- License: apache-2.0
- Created: 2017-05-17T12:25:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-23T10:20:47.000Z (over 7 years ago)
- Last Synced: 2024-11-10T14:50:43.555Z (3 months ago)
- Topics: gradle, gradle-plugin, gradle-smartsprites, smartsprites
- Language: Groovy
- Homepage: https://plugins.gradle.org/plugin/io.github.smartsprites
- Size: 67.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gradle-smartsprites
Gradle Plug-in for [SmartSprites](http://csssprites.org/).### Usage
See: https://plugins.gradle.org/plugin/io.github.smartspritesSpecify at the beginning of your `build.gradle`:
```groovy
plugins {
id "io.github.smartsprites" version "1.1"
}
```than configure it.
```groovy
spriteConf {
cssFileEncoding = "UTF-8"
cssFileSuffix = "-v${version}"
logLevel = "INFO"
spritePngDepth = "AUTO"
spritePngIe6 = "false"
}
```One can also specify the CSS file to process:
- ```cssFiles = "${webAppDir}/css/my_style.css"``` in case of using the 'war' plug-in
- or a list of files with ```source = fileTree(dir: "${webAppDir}", include: '**/*.css')```
Than just call ```gradle sprites``` to generate the sprites.