You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
493 B
19 lines
493 B
3 years ago
|
const purify = require("purify-css")
|
||
|
|
||
|
// Reference of all HTML files from root directory
|
||
|
let content = ['../www/*.html'];
|
||
|
|
||
|
// Reference of all CSS files from root directory
|
||
|
let css = ['*.css'];
|
||
|
|
||
|
let files = {
|
||
|
output: '../www/simulator.css',
|
||
3 years ago
|
whitelist: ['is-multiple', 'is-loading', 'is-narrow', 'is-active', 'climate-zone'],
|
||
3 years ago
|
minify: true,
|
||
|
info: true
|
||
|
};
|
||
|
|
||
|
purify(content, css, files, function (purifiedAndMinifiedResult) {
|
||
|
console.log(purifiedAndMinifiedResult);
|
||
|
});
|