2021-10-02 18:50:37 +01:00
|
|
|
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',
|
2021-10-03 20:43:35 +01:00
|
|
|
whitelist: ['is-multiple', 'is-loading', 'is-narrow', 'is-active', 'climate-zone'],
|
2021-10-02 18:50:37 +01:00
|
|
|
minify: true,
|
|
|
|
info: true
|
|
|
|
};
|
|
|
|
|
|
|
|
purify(content, css, files, function (purifiedAndMinifiedResult) {
|
|
|
|
console.log(purifiedAndMinifiedResult);
|
|
|
|
});
|