vehicle-simulator/simulator/tools/purify.js

19 lines
493 B
JavaScript
Raw Normal View History

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',
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);
});