-
Notifications
You must be signed in to change notification settings - Fork 0
/
sprite.yml
40 lines (37 loc) · 1.28 KB
/
sprite.yml
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
# Common generators configuration
# Path for temporary files
runtimePath: runtime
# Path for result sprite files
generatedPath: generated
# Base name for generated files
# For example value of `sprite` will result in generating files:
# * sprite.css
# * sprite.png
# * sprite.html
basename: sprite
# CSS class name prefix used for all icons.
# This should be something distinctive
# or might match many CSS elements.
iconCssClass: icon
#optimizer: pngcrush {src} {dst}
optimizer: pngquant --ext .png --force {src}
# Generator classes used to generate files
# NOTE: In some cases (ie. OptimizedGenerator) order of generators *is* important
generators:
- Maslosoft\Sprite\Generators\CssGenerator
- Maslosoft\Sprite\Generators\ImgGenerator
- Maslosoft\Sprite\Generators\CheatSheetGenerator
- Maslosoft\Sprite\Generators\ConstantsGenerator
- Maslosoft\Sprite\Generators\OptimizedGenerator
# PSR compliant logger
logger:
class: Psr\Log\NullLogger
# Configuration options below are used only when running as local generator
# These are same as one package config
# Paths to scan for icons
# See also class Maslosoft\Sprite\Model\Package
paths:
- assets
# This is default, really should use some other class.
# Class Name `I` is proposed similarly as `i` tag
constantsClass: Maslosoft\Sprite\Icon\I