Closed matthewp closed 9 years ago
We need to rewrite the paths to images in css. For example you might have:
pmo/ header/ header.css: url(../images/logo.png) images/ logo.png
dist/ bundles/ header/ header.css: url("../../images/logo.png") images/ logo.png
css rewrite: https://github.com/stealjs/steal-css/blob/master/css.js#L23
The urls have already been rewritten by steal-tools at this point, so I think we can check if the file exists and is part of the files we are moving, and if so do the rewrite.
https://github.com/stealjs/steal-bundler
Fixed: https://github.com/stealjs/steal-bundler/commit/f152dd386fbbe55825f131724bc791128d7edcd0
We need to rewrite the paths to images in css. For example you might have:
dev
prod