Skip to content

Commit

Permalink
Merge 9294dee into c8c702f
Browse files Browse the repository at this point in the history
  • Loading branch information
黄百途 committed Aug 22, 2017
2 parents c8c702f + 9294dee commit a49f1d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -89,7 +89,7 @@ module.exports = function (grunt) {
node-sprite-generator tries to be very modular, so you can use the options we provide or write your own functions/modules to further customize your sprites.

#### options.src
Type: `String`
Type: `Array|String`
Default value: `[]`
Specifies the images that will be combined to the sprite. node-sprite-generator uses glob pattern matching, so paths with wildcards are valid as well.

Expand Down
3 changes: 3 additions & 0 deletions lib/nsg.js
Expand Up @@ -53,6 +53,9 @@ function readAllSources(src) {
}

function generateSprite(userOptions, callback) {
if (!Array.isArray(userOptions.src)) {
userOptions.src = [userOptions.src];
}
var options = R.pipe(
R.merge(defaultOptions),
R.evolve({
Expand Down

0 comments on commit a49f1d2

Please sign in to comment.