vehicle-simulator/simulator/tools/purify.js

17 lines
472 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 = ['./*.html'];
2021-10-02 18:50:37 +01:00
// Reference of all CSS files from root directory
let css = ['../.intermediate/simulator.css'];
2021-10-02 18:50:37 +01:00
let options = {
output: '../www/simulator.css',
whitelist: ['is-multiple', 'is-loading', 'is-narrow', 'is-active', 'climate-zone', 'is-max-desktop', 'is-max-widescreen'],
minify: false,
info: false
2021-10-02 18:50:37 +01:00
};
purify(content, css, options);