salix/print/core/stylesheet.js

20 lines
361 B
JavaScript

const fs = require('fs-extra');
const path = require('path');
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;