@@ -33,14 +33,14 @@ const plugin = (options = {}) => {
33
33
34
34
// Process it
35
35
return extractImages ( css , opts , result )
36
- . spread ( ( opts , images ) => applyFilterBy ( opts , images ) )
37
- . spread ( ( opts , images ) => applyGroupBy ( opts , images ) )
38
- . spread ( ( opts , images ) => setTokens ( css , opts , images ) )
39
- . spread ( ( root , opts , images ) => runSpritesmith ( opts , images ) )
40
- . spread ( ( opts , images , spritesheets ) => saveSpritesheets ( opts , images , spritesheets ) )
41
- . spread ( ( opts , images , spritesheets ) => mapSpritesheetProps ( opts , images , spritesheets ) )
42
- . spread ( ( opts , images , spritesheets ) => updateReferences ( css , opts , images , spritesheets ) )
43
- . spread ( ( root , opts , images , spritesheets ) => {
36
+ . then ( ( [ opts , images ] ) => applyFilterBy ( opts , images ) )
37
+ . then ( ( [ opts , images ] ) => applyGroupBy ( opts , images ) )
38
+ . then ( ( [ opts , images ] ) => setTokens ( css , opts , images ) )
39
+ . then ( ( [ root , opts , images ] ) => runSpritesmith ( opts , images ) )
40
+ . then ( ( [ opts , images , spritesheets ] ) => saveSpritesheets ( opts , images , spritesheets ) )
41
+ . then ( ( [ opts , images , spritesheets ] ) => mapSpritesheetProps ( opts , images , spritesheets ) )
42
+ . then ( ( [ opts , images , spritesheets ] ) => updateReferences ( css , opts , images , spritesheets ) )
43
+ . then ( ( [ root , opts , images , spritesheets ] ) => {
44
44
opts . logger ( `${ spritesheets . length } ${ spritesheets . length > 1 ? 'spritesheets' : 'spritesheet' } generated.` ) ;
45
45
} )
46
46
. catch ( ( err ) => {
0 commit comments