Sha256: ba78922818fe5824bdeda976076d2c86352be9985173539ba0256203f7f41878
Contents?: true
Size: 627 Bytes
Versions: 24
Compression:
Stored size: 627 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = _default; /** * Executes a provided function once for each CSS block element. * * @param {Root|Document} root - root element of file. * @param {function} cb - Function to execute for each CSS block element */ function _default(root, cb) { // class `Document` is a part of `postcss-html`, // It is collection of roots in HTML File. // See: https://github.com/gucong3000/postcss-html/blob/master/lib/document.js if (root.constructor.name === "Document") { root.nodes.forEach(cb); } else { cb(root); } }
Version data entries
24 entries across 24 versions & 1 rubygems