Skip to content

Commit b2d62ec

Browse files
Account for before not being an array sometimes
1 parent 1332b88 commit b2d62ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module.exports = function (browserify, options) {
114114

115115
var postcssBefore = options.postcssBefore || options.before || [];
116116
var postcssAfter = options.postcssAfter || options.after || [];
117-
plugins = postcssBefore.concat(plugins).concat(postcssAfter);
117+
plugins = (Array.isArray(postcssBefore) ? postcssBefore : [postcssBefore]).concat(plugins).concat(postcssAfter);
118118

119119
// load plugins by name (if a string is used)
120120
plugins = plugins.map(function requirePlugin (name) {

0 commit comments

Comments
 (0)