stealjs / steal-bundler

Bundle assets into your dist folder with StealTools
https://www.npmjs.com/package/steal-bundler
MIT License
2 stars 1 forks source link

infer:false, glob:[...] should update bundle references to files copied by the glob #24

Closed nlundquist closed 7 years ago

nlundquist commented 7 years ago

When using the glob asset matching, files copied by the glob don't have their references in the bundles updated to the copies in the /dist folder.

This is reproducible in the place-my-order app where the files from the place-my-order-assets are copied to the the /dist folder, but the css file at /dist/bundles/place-my-order/index.css references loading.gif at ../../../node_modules/place-my-order-assets/images/loading.gif. That's a path to outside of the /dist folder, even though a copy of this image exists at /dist/node_modules/place-my-order-assets/images/loading.gif.

Using infer:true updates the path in index.css as expected to the loading.gif copy within /dist/..., the glob approach should do the same.

nlundquist commented 7 years ago

Fixed as of PR #25