salix/print/core/stylesheet.js

20 lines
361 B
JavaScript
Raw Permalink Normal View History

const fs = require('fs-extra');
2022-09-16 21:13:37 +00:00
const path = require('path');
2019-10-31 11:43:04 +00:00
class Stylesheet {
constructor(files) {
this.files = files;
this.css = [];
}
mergeStyles() {
2022-09-16 21:13:37 +00:00
for (const file of this.files) {
this.css.push(fs.readFileSync(file));
2022-09-16 21:13:37 +00:00
}
return this.css.join('\n');
}
}
2019-10-31 11:43:04 +00:00
module.exports = Stylesheet;