bdkjones / CodeKit2

CodeKit 2 Beta
97 stars 4 forks source link

Sub-sub-directory importing ../../header.kit but not CSS #578

Closed andrewlobo closed 9 years ago

andrewlobo commented 9 years ago

Hey Bryan,

My root-directory pages and sub-directory pages are working fine. For example, sub-directory pages are pulling ../header.kit without any problem (and header.kit imports css/style.css).

But once I go two directories down (sub-sub-directories), those pages still recognize ../../header.kit, but they're not pulling css/style.css. Running v2.4 on Yosemite.

Many thanks.

bdkjones commented 9 years ago

Well, yea. If the import path css/style.css works from one level, that same import path will NOT work from a level down because the relative path is not correct from that level. You would need ../css/style.css

andrewlobo commented 9 years ago

Cool, got it. I got tripped up because a root file and sub-directory file were somehow both importing a .kit file from root using the same path, so I figured it would work with the CSS file. All good now. Thanks, Bryan.

bdkjones commented 9 years ago

No problem; glad you got it figured out.