trentrichardson / cakephp-shrink

Shrink is a CakePHP plugin to Compile, Combine, Compress js, css, less, sass, coffee assets
16 stars 9 forks source link

Plugin path error #11

Closed joopvanduin closed 6 years ago

joopvanduin commented 6 years ago

Hi

Tried to use this plugin but it can not load for example a css file from a plugin webrott/css folder.

I debugged it and found the problem in Shrink.php

$plugin_path = preg_replace('/(\/+|\+)/', DS, APP . DS . 'plugins' . DS . $plugin . DS . 'webroot' .DS. $plugin_rel_path);

APP = /src plugins are in /plugins (same level as src in CakePhph 3)

So APP . 'plugins' = /src/plugins it should be /plugins

All the best Joop van Duin

trentrichardson commented 6 years ago

Sorry for the delay on this. I appreciate you reporting the fix. I've committed a fix and published a new version