✏️ 编辑:getArguments.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/cssnano-utils/src/getArguments.js
大小:535 B · 修改:2022-11-21 20:08:16 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
'use strict'; /** * Extracts the arguments of a CSS function or AtRule. * * @param {import('postcss-value-parser').ParsedValue | import('postcss-value-parser').FunctionNode} node * @return {import('postcss-value-parser').Node[][]} */ module.exports = function getArguments(node) { /** @type {import('postcss-value-parser').Node[][]} */ const list = [[]]; for (const child of node.nodes) { if (child.type !== 'div') { list[list.length - 1].push(child); } else { list.push([]); } } return list; };
💾 保存
取消
保存为 UTF-8,换行统一为 LF