Closed pYr0x closed 6 years ago
Awesome! Will definitely get this merged in.
@pYr0x this needs to be documented, right?
Yep. I can write some docs. Under https://stealjs.com/docs/steal-tools.StealConfig.html ?
Wouldn't it be here? https://stealjs.com/docs/config.bundle.html . Looks like there's already a glob example though. Did yours just improve the existing support?
globbing was only available if a plain string was provided. like the example shown.
i will update the docs and refer a link to StealConfig on https://stealjs.com/docs/config.bundle.html
in steal you can add bundles that are loaded progressive see this HowTo: https://stealjs.com/docs/StealJS.guides.progressive_loading.html#build-a-progressive-loading-production-app
this adds feature for #507 and new version of #512 this is available in steal version 2.0
@matthewp this version is similar to #512. if we are with npm then it removes the package name, find the files, and adds back the package name. https://github.com/stealjs/steal-tools/blob/glob-bundle/lib/loader/find_bundle.js#L75 weird mapping is not supported. just simple globs like
bundle: ["npm-bundle/sites/**/*"]
bundle: ["npm-bundle/components/**/*","!npm-bundle/components/**/*-test.js"]
this feature is fully backwards compatible
hopefully this lands on steal-tools. this save me a lot of writing bundle names