salix/print/core/stylesheet.js

19 lines
329 B
JavaScript

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