You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,10 @@ Configuration of `sprite` is done via `config/sprite.yml`. It allows you to set
90
90
91
91
*`config:` section defines all the global properties for sprite generation. Such as how it generates the styles, where it looks for images, where it writes it output file to, and what image file format it uses by default
92
92
-`style:` defines how the style rules are outputted. built in options are `css`, `sass`, and `sass_mixin`. (defaults to `css`)
93
-
-`output_path:` defines the file path where your style settings get written (defaults to `public/stylesheets/sprites`). the file extension not needed as it will be set based on the `style:` setting
94
-
-`image_output_path:` defines the folder path where the combined sprite images files are written (defaults to `public/images/sprites/`)
95
-
-`source_path:` defines the folder where source image files are read from (defaults to `public/images/`)
93
+
-`style_output_path:` defines the file path where your style settings get written (defaults to `stylesheets/sprites`). the file extension not needed as it will be set based on the `style:` setting
94
+
-`image_output_path:` defines the folder path where the combined sprite images files are written (defaults to `images/sprites/`)
95
+
-`image_source_path:` defines the folder where source image files are read from (defaults to `images/`)
96
+
-`public_path:` defines the root folder where static assets live (defaults to `public/`)
96
97
-`sprites_class:` defines the class name that gets added to all sprite stylesheet rules (defaults to `sprites`)
97
98
-`default_format:` defines the default file image format of the generated files. (defaults to `png`)
98
99
-`class_separator:` used to generated the class name by separating the image name and sprite name (defaults to `-`)
@@ -104,17 +105,18 @@ Configuration of `sprite` is done via `config/sprite.yml`. It allows you to set
104
105
-`spaced_by:` spacing (in pixels) between the combined images. (defaults to `0`)
105
106
-`format:` define what image file format gets created (optional, uses `default_format` setting if not set)
106
107
107
-
you can define any number of destination image files.
108
+
All image and style paths should be set relative to the public folder (which is configurable via public_path setting).
108
109
109
110
### Sample Configuration `config/sprite.yml` ###
110
111
111
112
# defines the base configuration options (file paths, etc, default style, etc)
0 commit comments