CodeSleeve / asset-pipeline

This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
http://www.codesleeve.com
MIT License
489 stars 53 forks source link

404 in production mode when main CSS is a LESS file #46

Closed dwightwatson closed 10 years ago

dwightwatson commented 11 years ago

I've come across an issue where if your main CSS file (application.css) is instead a LESS file called application.css.less with require_self, it doesn't compile properly in production and instead 404s.

The workaround I'm using is to move all my LESS styles to another stylesheet and then require it using the Sprockets format, but it doesn't seem as this should be a problem to start with.

kdocki commented 10 years ago

Hey @dwightwatson are you still seeing this issue?

dwightwatson commented 10 years ago

Let me give it a shot now, I've since switched back to using application.css (on master-dev if that makes a difference).

dwightwatson commented 10 years ago

Yeah, still getting it...

[2013-11-21 02:34:31] log.ERROR: exception 'Codesleeve\AssetPipeline\Exceptions\InvalidPath' with message 'Cannot find given path in paths: application.css' in /Users/Dwight/Sites/laravel/vendor/codesleeve/asset-pipeline/src/Codesleeve/AssetPipeline/SprocketsBase.php:74
kdocki commented 10 years ago

@dwightwatson if I create a file named application.css.less this works... when I do `<?= stylesheet_link_tag() ?>

/**
 *
 *= require_tree .
 */

html {
    body {
        background-color: red;
    }
}