nathancox / silverstripe-minify

Minifies CSS requirements using Minify (http://code.google.com/p/minify/)
26 stars 9 forks source link

Fatal error: Class 'tubalmartin\CssMin\Minifier' not found #15

Closed claire-ee closed 6 years ago

claire-ee commented 6 years ago

On a SilverStripe 3.1 site I have installed the plugin, run dev/build, set the environment to LIVE and set the combine_files to a min.css file.

On page load get the following error

Fatal error: Class 'tubalmartin\CssMin\Minifier' not found in /var/www/sites/cto/web/minify/thirdparty/minify/lib/Minify/CSSmin.php on line 70
nathancox commented 6 years ago

Did you install it using composer? tubalmartin/cssmin is added as a composer dependency. If you're not using composer you might be able to download it manually from https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port and put it in a vendor folder in the site root or something like that.

claire-ee commented 6 years ago

ok, thank you