salix/print/core/cssReader.js

19 lines
327 B
JavaScript

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