Comparing version 2.4.1 to 2.4.3
@@ -0,0 +0,0 @@ ### Unreleased |
@@ -0,0 +0,0 @@ #!/usr/bin/env node |
@@ -0,0 +0,0 @@ module.exports = { |
@@ -125,3 +125,3 @@ 'use strict' | ||
root.walkAtRules((rule) => { | ||
if (rule.nodes.length === 0) { | ||
if (typeof rule.nodes === 'undefined' || rule.nodes.length === 0) { | ||
rule.remove() | ||
@@ -128,0 +128,0 @@ } |
@@ -0,0 +0,0 @@ const Code = require('code') // assertion library |
{ | ||
"name": "css-razor", | ||
"version": "2.4.1", | ||
"version": "2.4.3", | ||
"description": "Remove unused selectors from CSS efficiently", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"lint": "standard --globals=fetch", | ||
"test:unit": "lab ./index.test.js --ignore fetch,Response,Headers,Request", | ||
"test:unit": "lab ./index.test.js --ignore fetch,Response,Headers,Request,Base64", | ||
"test": "npm run lint && npm run test:unit", | ||
@@ -14,0 +14,0 @@ "v-patch": "npm version patch && git push --tags && npm publish && git push", |
@@ -0,0 +0,0 @@ # css-razor |
@@ -0,0 +0,0 @@ exports.simpleCss = 'body {\n font-size: 20px;\n}\n\n.some-element {\n margin: 20px;\n}\n\n.some-element .inner-element {\n text-align: center;\n}\n\n.some-element > .inner-element {\n color: blue;\n}\n' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
110824