The Minifier module for OpenMage
Contents (v4.6.0)
Don't forget that the present documentation is only about the latest version of the module.
Don't forget to read this page entirely.
🌟🌟🌟🌟🌟 by Cocotte,
on 01/04/2020 This module isn't premium, isn't ultimate, isn't pro, it doesn't contain a spyware or a nice ad, and it won't increase by 165% your ROI. It's just better than anything else you've seen anywhere else. It's a revolution!
Module presentation
Description
This module allows:
- to minify HTML pages
- to merge and minify all CSS and JS files
- to generate map files for CSS and JS minified files
- to move the translator data into JS files (one per language)
- to add a key in assets urls
It is important to note that this module uses external programs to work (see details later).
Access and configuration
Configuration available in System » Configuration » Tools » Minify and cache.
Installation and uninstallation
Nothing simpler with composer (or by decompressing the module archive).
To get the key, don't stop reading :) ...
The following programs are necessary for the proper functioning of the module:
Linux/Mac/Windows → npm install -g uglify-js clean-css clean-css-cli
For uninstallation, having uninstalled the module, all that remains is to erase the configuration:
sqlDELETE FROM core_config_data WHERE path LIKE "minifier/%";
DELETE FROM core_resource WHERE code = "minifier_setup";
Module download
Installation with composer: composer require luigifab/openmage-minifier
Download of the latest version: openmage-minifier-4.6.0.tar.gz
See also: github - composer - geany - phpstorm
- Current version: 4.6.0 (01/01/2024)
- Compatibility: OpenMage 19.x / 20.x / 21.x, PHP 7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2 / 8.3 (with exec)
- Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+
- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) / Chinese (zh), Czech (cs), Dutch (nl), Greek (el), Hungarian (hu), Japanese (ja), Polish (pl), Romanian (ro), Russian (ru), Slovak (sk), Turkish (tr), Ukrainian (uk)
- License: GNU GPL 2.0+
- Read absolutely: the README file
- 4.6.0
- Tested with Firefox 36/114, Chrome 32/109, Edge 109, Opera 19/95 on OpenMage 21.3.0 with PHP 7.2 - 8.3 and MariaDB 10.11.
If you like this module, take some of your time to improve the translations.