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