reactway / scss-bundle

Bundling SCSS files to one bundled file.
MIT License
57 stars 25 forks source link

Missing `BundleAll` method. #67

Closed MartynasZilinskas closed 5 years ago

MartynasZilinskas commented 5 years ago

In the newest version, BundleAll helper method is removed from Bundler class. We never used it ourselves, so if it's a breaking change for you, we want to know your use case.

Simple code that replicates what BundleAll was doing:

async function main(): Promise<void> {
    const filePaths: string[] = [];
    const bundler = new Bundler(undefined, __dirname);
    const bundledResultList = await Promise.all(filePaths.map(file => bundler.bundle(file)));
}