salix/print/core/stylesheet.js

18 lines
319 B
JavaScript

const fs = require('fs-extra');
class Stylesheet {
constructor(files) {
this.files = files;
this.css = [];
}
mergeStyles() {
for (const file of this.files)
this.css.push(fs.readFileSync(file));
return this.css.join('\n');
}
}
module.exports = Stylesheet;