Welcome Guest, Not a member yet? Register   Sign In
Minifier - asset minification and versioning library

Hmm... I think this is a bug related to the way CodeIgniter discover custom namespaces right now.

You have to place part:
PHP Code:
'Michalsn\Minifier' => APPPATH .'ThirdParty/minifier/src' 
  at the beginning of the $psr4 array in Autoload class. That should help for now. Or you can also change the location of the package away from App namespace (something else than app/ folder).

Just an update on the issue with $psr4 array. This problem was fixed in the latest develop branch, so if you use the latest CodeIgniter version, then all should work just fine. If you have to stick with 4.0.2 for now, then the solution for you is one post above.

I have just released v1.1.0 of this package.

The new release covers a few bugfixes and two new features:

- New config variable $returnType that specifies if we want to get html (default), json or php array as a result when we load a file to display.
- New optional config variables $baseJsUrl and $baseCssUrl to handle serving assets from separate domains.

Thank you for your feedback.

Would be cool if it would support html minification as well

Does it have an autoprefixer for CSS? Some older mobile devices need it.

@Inc33 - html minification is out of the scope for this package
@ivantcholakov - no, only minification + combining and versioning is supported

Theme © iAndrew 2016 - Forum software by © MyBB