Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/georgikolev7/opencart-js-css-minifier
JS & CSS Minifier for OpenCart 2.1
https://github.com/georgikolev7/opencart-js-css-minifier
css-minifier js-minifier opencart opencart-2x
Last synced: 10 days ago
JSON representation
JS & CSS Minifier for OpenCart 2.1
- Host: GitHub
- URL: https://github.com/georgikolev7/opencart-js-css-minifier
- Owner: georgikolev7
- Created: 2017-06-26T10:27:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-18T12:59:42.000Z (over 5 years ago)
- Last Synced: 2024-04-17T16:35:15.338Z (7 months ago)
- Topics: css-minifier, js-minifier, opencart, opencart-2x
- Language: PHP
- Homepage:
- Size: 56.6 KB
- Stars: 13
- Watchers: 6
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
JS & CSS Minifier for OpenCart
===================This module is a integration of [minifier.org](http://minifier.org) to OpenCart. You need to have [vQmod](https://github.com/vqmod/vqmod) installed.
----------
How to install
-------------The module don't replace any file, **but you need to do changes in both index.php files** inside root and admin directories.
1. 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));2. Do the same in your index.php file, inside **/admin/** directory
3. Upload all other files.Need to know
-------------
1. The module combine and compress only JS and CSS files, added through **addScript** and **addStyle** functions.
2. Combined and compressed files are stored inside **/system/storage/cache/** directory
3. Minifier.org find all images and fonts inside every CSS file and rewrite the paths to them.
4. All images inside CSS files are converted to base64 format.
5. This module **don't have configuration options** through administration panel.