aboutsummaryrefslogtreecommitdiff
path: root/node_modules/cssnano/dist/lib/getArguments.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/cssnano/dist/lib/getArguments.js')
-rw-r--r--node_modules/cssnano/dist/lib/getArguments.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/cssnano/dist/lib/getArguments.js b/node_modules/cssnano/dist/lib/getArguments.js
new file mode 100644
index 00000000..bcb5a427
--- /dev/null
+++ b/node_modules/cssnano/dist/lib/getArguments.js
@@ -0,0 +1,15 @@
+'use strict';
+
+exports.__esModule = true;
+exports.default = getArguments;
+function getArguments(node) {
+ return node.nodes.reduce(function (list, child) {
+ if (child.type !== 'div') {
+ list[list.length - 1].push(child);
+ } else {
+ list.push([]);
+ }
+ return list;
+ }, [[]]);
+}
+module.exports = exports['default']; \ No newline at end of file