We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
before
1 parent 1332b88 commit b2d62ecCopy full SHA for b2d62ec
index.js
@@ -114,7 +114,7 @@ module.exports = function (browserify, options) {
114
115
var postcssBefore = options.postcssBefore || options.before || [];
116
var postcssAfter = options.postcssAfter || options.after || [];
117
- plugins = postcssBefore.concat(plugins).concat(postcssAfter);
+ plugins = (Array.isArray(postcssBefore) ? postcssBefore : [postcssBefore]).concat(plugins).concat(postcssAfter);
118
119
// load plugins by name (if a string is used)
120
plugins = plugins.map(function requirePlugin (name) {
0 commit comments