2021-10-02 18:50:37 +01:00
|
|
|
const purify = require("purify-css")
|
|
|
|
|
|
|
|
// Reference of all HTML files from root directory
|
2021-10-05 22:30:43 +01:00
|
|
|
let content = ['./*.html'];
|
2021-10-02 18:50:37 +01:00
|
|
|
|
|
|
|
// Reference of all CSS files from root directory
|
2021-10-08 18:44:28 +01:00
|
|
|
let css = ['../.intermediate/simulator.css'];
|
2021-10-02 18:50:37 +01:00
|
|
|
|
2021-10-06 18:27:32 +01:00
|
|
|
let options = {
|
2021-10-08 18:44:28 +01:00
|
|
|
output: '../www/simulator.css',
|
2021-10-10 22:58:26 +01:00
|
|
|
whitelist: ['is-multiple', 'is-loading', 'is-narrow', 'is-active', 'climate-zone', 'grid-recharge', 'is-max-desktop', 'is-max-widescreen', 'line'],
|
2021-10-08 18:44:28 +01:00
|
|
|
minify: false,
|
2021-10-06 18:27:32 +01:00
|
|
|
info: false
|
2021-10-02 18:50:37 +01:00
|
|
|
};
|
|
|
|
|
2021-10-06 18:27:32 +01:00
|
|
|
purify(content, css, options);
|