UNPKG

penthouse

Version:

Generate critical path CSS for web pages

15 lines (13 loc) 294 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = commentRemover; function commentRemover(ast) { // remove top level comments ast.children.each((node, item, list) => { if (node.type === 'Comment') { list.remove(item); } }); }