diff options
Diffstat (limited to 'node_modules/postcss-import/lib/join-layer.js')
| -rw-r--r-- | node_modules/postcss-import/lib/join-layer.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/postcss-import/lib/join-layer.js b/node_modules/postcss-import/lib/join-layer.js new file mode 100644 index 0000000..9d91519 --- /dev/null +++ b/node_modules/postcss-import/lib/join-layer.js @@ -0,0 +1,9 @@ +"use strict" + +module.exports = function (parentLayer, childLayer) { + if (!parentLayer.length && childLayer.length) return childLayer + if (parentLayer.length && !childLayer.length) return parentLayer + if (!parentLayer.length && !childLayer.length) return [] + + return parentLayer.concat(childLayer) +} |