salix/print/core/stylesheet.js

18 lines
319 B
JavaScript
Raw Normal View History

const fs = require('fs-extra');
2019-10-31 11:43:04 +00:00
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');
}
}
2019-10-31 11:43:04 +00:00
module.exports = Stylesheet;