RunKit + npm: purify-css

node v8.17.0
version: master
endpointsharetweet
var purifyCss = require("purify-css") var html = '<div class="span-2"></div>' var css = ` /* only .span-2 should stay */ .span-1 {width: 1vw} .span-2 {width: 2vw} .span-3 {width: 3vw} /* .extra will be removed */ .extra {width: 100vw} ` var purified = purifyCss(html, css, {})
Created from: https://npm.runkit.com/purify-css
Loading…

no comments

    sign in to comment