19 lines
464 B
JavaScript
19 lines
464 B
JavaScript
|
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'],
|
||
|
minify: true,
|
||
|
info: true
|
||
|
};
|
||
|
|
||
|
purify(content, css, files, function (purifiedAndMinifiedResult) {
|
||
|
console.log(purifiedAndMinifiedResult);
|
||
|
});
|