@@ -33,14 +33,14 @@ const plugin = (options = {}) => {
3333
3434 // Process it
3535 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 ] ) => {
4444 opts . logger ( `${ spritesheets . length } ${ spritesheets . length > 1 ? 'spritesheets' : 'spritesheet' } generated.` ) ;
4545 } )
4646 . catch ( ( err ) => {
0 commit comments