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() {
|
|
|
|
this.files.forEach(file => {
|
|
|
|
this.css.push(fs.readFileSync(file));
|
|
|
|
});
|
|
|
|
|
|
|
|
return this.css.join('\n');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-31 11:43:04 +00:00
|
|
|
module.exports = Stylesheet;
|