This module is a integration of minifier.org to OpenCart. You need to have vQmod installed.
The module don't replace any file, but you need to do changes in both index.php files inside root and admin directories.
-
Open index.php in your root directory and find
// Document $registry->set('document', new Document());
replace it with
// Compress
$registry->set('compress', new Compress($registry));
// Document
$registry->set('document', new Document($registry));
- Do the same in your index.php file, inside /admin/ directory
- Upload all other files.
- The module combine and compress only JS and CSS files, added through addScript and addStyle functions.
- Combined and compressed files are stored inside /system/storage/cache/ directory
- Minifier.org find all images and fonts inside every CSS file and rewrite the paths to them.
- All images inside CSS files are converted to base64 format.
- This module don't have configuration options through administration panel.