Youen Toupin
3121342337
- using a <div> container instead of an <iframe> (simplifies the build system, avoids the quirks iframes) - Bulma CSS is encapsulated in the #simulator ID to avoid polluting the rest of the page, as well as increasing the chances to override the page CSS
17 lines
472 B
JavaScript
17 lines
472 B
JavaScript
const purify = require("purify-css")
|
|
|
|
// Reference of all HTML files from root directory
|
|
let content = ['./*.html'];
|
|
|
|
// Reference of all CSS files from root directory
|
|
let css = ['../.intermediate/simulator.css'];
|
|
|
|
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
|
|
};
|
|
|
|
purify(content, css, options);
|