You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 26, 2024. It is now read-only.
When using an optional $options['cache_dir'] parameter the CSS file that gets created will be created in that directory instead of the CSS directory.
However the \Less_Cache::Get function returns the basename() of the generated file.
The result of this problem is that the filename that gets passed to $this->Html->css a basename() and the filename that gets generated by \Less_Cache::Get is inside the ['cache_dir'] directory.
There are 3 scenarios.
No $options['parser']['cache_dir']
$options['parser']['cache_dir'] that begins with / relative to WWW_ROOT
$options['parser']['cache_dir'] that does not begin with / relative to /css
When using an optional $options['cache_dir'] parameter the CSS file that gets created will be created in that directory instead of the CSS directory.
However the \Less_Cache::Get function returns the basename() of the generated file.
The result of this problem is that the filename that gets passed to $this->Html->css a basename() and the filename that gets generated by \Less_Cache::Get is inside the ['cache_dir'] directory.
There are 3 scenarios.
The $this->compile() function looks like this:
Inside the $this->less() function looks like this: