peteboere / css-crush

CSS preprocessor.
http://the-echoplex.net/csscrush
MIT License
537 stars 51 forks source link

Nested @import statements fail #50

Closed adamaveray closed 10 years ago

adamaveray commented 11 years ago

If a CSS file is imported that then contains other @import statements, those files will not be imported.

Example (open the demo.php page)

For root URLs, the problem seems to be from the resolveRootedPath() method. If I just return from that method before the final value reassignment, it finds the file, but when it tries to do its move upwards in the directory thing it changes to a missing file.

peteboere commented 11 years ago

Thanks for your bug report and attached code.

I think I've got to the bottom of this and checked in some changes. All seems to work as expected now.