Skip to content

Commit

Permalink
Merge pull request #42 from Rebelmail/patch
Browse files Browse the repository at this point in the history
handle content as String in addition to Array
  • Loading branch information
maltsev authored Jun 24, 2017
2 parents 98ba2a4 + e5ac57b commit 283492d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/minifyCss.es6
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function minifyCss(tree, options, cssnanoOptions) {

function processStyleNode(styleNode, cssnanoOptions) {
return cssnano
.process(styleNode.content.join(' '), cssnanoOptions)
.process(Array.isArray(styleNode.content) ? styleNode.content.join(' ') : styleNode.content, cssnanoOptions)
.then(result => styleNode.content = [result.css]);
}

Expand Down

0 comments on commit 283492d

Please sign in to comment.