README 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. The Minify plugin minifies your CSS and Javascript, removing whitespace and
  2. comments.
  3. Note that if enabled this plugin and use a theme server,
  4. (if any of $config['theme']['server'], $config['theme']['path'],
  5. $config['theme']['dir'] are set) theme CSS will not be minified.
  6. This plugin will use memcache, if it is available, for storing minified inline
  7. and file javascript and css. Because minification is non-trivial, using
  8. memcache is recommended.
  9. Installation
  10. ============
  11. add "addPlugin('minify',
  12. array('setting'=>'value', 'setting2'=>'value2', ...);"
  13. to the bottom of your config.php
  14. Settings
  15. ========
  16. minifyInlineJs (true): Minify inline javascript.
  17. Because caching isn'tas effective for inline resources (due to its more
  18. dynamic nature) than static files, minifying inline resources may adversely
  19. affect performance for higher volume sites. Testing (and memcache usage)
  20. are highly recommended.
  21. minifyInlineCss (true): Minify inline CSS.
  22. Because caching isn'tas effective for inline resources (due to its more
  23. dynamic nature) than static files, minifying inline resources may adversely
  24. affect performance for higher volume sites. Testing (and memcache usage)
  25. are highly recommended.
  26. Example
  27. =======
  28. addPlugin('minify', array());