mojolicious/mojo-assetpack

Following scss includes and downloading them does not respect paths

Closed this issue · 6 comments

if you have an asset foo that includes _bar and foo/baz , and foo/baz includes _bar (locally under foo/) it will not be downloaded automatically.

Could you provide an example project (sass project on github or something) where this happens?

Thanks!

Now I get it: Pipe::Sass tries to download many different files in order, so it first tries to download "_layout.scss" which it cannot find, but then afterwards it downloads "layout.scss" which does exist. I will see if I can silence the warning somehow, but at least the code works as expected.

if Pipe::Sass fail to download all of the various allowed SASS filenames, it will fail loudly.

https://github.com/jhthorsen/mojolicious-plugin-assetpack/blob/master/lib/Mojolicious/Plugin/AssetPack/Pipe/Sass.pm#L77-L83

Another thing to fix is that assetpack.db should prevent Pipe::Sass from even trying to fetch the files later on.

This is now fixed.