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;