How to use the uncss function in uncss

To help you get started, we’ve selected a few uncss examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github posthtml / htmlnano / lib / modules / removeUnusedCss.es6 View on Github external
return new Promise((resolve, reject) => {
        options.raw = css;
        uncss(html, options, (error, output) => {
            if (error) {
                reject(error);
                return;
            }
            resolve(output);
        });
    });
}

uncss

Remove unused CSS styles

MIT
Latest version published 4 years ago

Package Health Score

63 / 100
Full package analysis

Popular uncss functions