Бесплатно
Загрузите дополнение из админки вашего сайта.
Как загрузить?
Как загрузить?
Компонент для склейки и сжатия скриптов и стилей. Хорошо ускоряет загрузку страниц сайта. Для работы используется библиотека Munee.
Пример вызова:
Пример вызова:
[[MinifyX?
&minifyCss=`1`
&minifyJs=`1`
®isterJs=`default`
®isterCss=`default`
&jsSources=`
/inc/js/bootstrap.min.js,
/inc/js/jquery.form.js,
/inc/js/scripts.js,
`
&cssSources=`
/inc/css/bootstrap.css,
/inc/css/bootstrap-responsive.css,
/inc/css/font-awesome.css,
/inc/css/custom-fonts.css,
/inc/css/style.css
`
]]Вопросы и предложения пишите на Github.
Внимание! Библиотека Munee давно не развивается, так что использование дополнения на современных сайтах не рекомендуется. Гораздо лучше освоить работу со скриптами и стилями через node.js.
1.7.1-pl (25.03.2019)
- Fixed bug with startup js registration.
1.7.0-pl (30.12.2018)
- Added php function "minify" to manage assets from the php code.
- Added the ability to minify content.
- Added the ability to use version for assets.
- Updated composer dependencies.
1.6.0-pl (22.01.2018)
- Updated all Munee dependencies. You can do it anytime via composer.
- Php version must be >= 5.6.
- Added the method "getFileUrl" to the MinifyX class.
- Added the method "getFilePath" to the MinifyX class.
- Added the "forceUpdate" snippet parameters and the same system setting.
- Added the "forceDelete" system setting to delete all files in the cache directory.
- Added the "cssTpl" and "jsTpl" snippet parameters.
- Added new register type "print" for immediate output.
- Added the file hook "fixVm.php" which fixes the "vmax" and "vmin" units after css compilation.
- Some bugfixes.
1.5.0-pl (19.01.2018)
- Updated all Munee dependencies. You can do it anytime via composer.
- Added config file for groups (core/components/minifyx/config/groups.php).
- Added "cssGroup" snippet parameter.
- Added "jsGroup" snippet parameter.
- Added "preHooks" snippet parameter. A hook can be either a snippet or a file, specified in the core/components/minifyx/hooks folder.
- Added "hooks" snippet parameter. A hook can be either a snippet or a file, specified in the core/components/minifyx/hooks folder.
- Added the ability to run the snippet multiple times.
- Added file hook "cssToPage" (&hook=`cssToPage.php`).
1.4.4-pl (16.05.2016)
- [#22] Updated sabberworm/php-css-parser to version 7.0.3.
1.4.3-pl (28.04.2016)
- [#21] Updated sabberworm/php-css-parser to version 7.0.2.
1.4.2-pl (22.08.2015)
- Updated Munee with all subpackages.
- Fixed fatal error on PHP 5.3.3.
1.4.1-pl (01.06.2015)
- Updated Munee with all subpackages.
- [#18] Improved work of plugin.
1.3.1-pl (21.07.2014)
- [#12] Support of MODX 2.3
- [#11] Improved set of "munee_cache" variable on Windows.
1.3.0-pl1 (12.05.2014)
- [#8] Fixed determining of cache dir for advanced site configuration.
- [#7] Fixed clearing cache.
- [#2] Added cut of comments in raw styles and scripts.
- [#9] Changed lessphp to https://github.com/oyejorge/less.php.
- Updated scssphp to version 0.0.10.
1.3.0-beta (26.12.2013)
- Refactored main class.
- Rewrited snippet MinifyX.
- Added plugin MinifyX that can process scripts, styles and images of web page.
- Improved connector in assets for image processing.
- Changed cached files format.
1.2.2-pl3 (16.12.2013)
- Removed phar file.
- Fixed url of cache dir in subfolder installations.
- Ability of commenting files by prefixing them by the dash.
1.2.1-pl (03.12.2013)
- [#1] Replaced constant DIRECTORY_SEPARATOR to '/'.
1.2.0-pl (23.11.2013)
- Fixed clean of parameter &cacheFolder
1.2.0-rc (20.11.2013)
- Updated leafo/lessphp to v0.4.0
- Updated leafo/scssphp to v0.0.8
- Improved error logging
1.2.0-beta (12.11.2013)
- Integrated Munee library from http://mun.ee
- Auto creation of cache dir.
- More options to register files on frontend.
1.1.3 (07.01.2013)
- absolute path in the URL attribute of all compressed files.
1.1.2 (11.09.2012)
- Improved caching of minified files.
1.1.1 (10.09.2012)
- Removed E_WARNING on line 94 of minifyx.class.php
1.1.0 (09.09.2012)
- Changed css minifier to Minify_CSS_Compressor from https://code.google.com/p/minify/
- Added Douglas Crockford's JSMin https://github.com/rgrove/jsmin-php/
- Serious refactor of code
- Added properties to snippet
- Removed plugin
- Improved caching of files
- Added parameters jsFilename && cssFilename
1.0.0
- Initial Version




Последние обсуждения в сообществе MODX.pro