moodle/lib/minify/readme_moodle.txt

25 lines
1.1 KiB
Plaintext

Description of MatthiasMullie\Minify import into Moodle
1) Go to https://github.com/matthiasmullie/minify/releases
Download the latest minify "Source code (zip)" and unzip it:
mv minify-X.Y.ZZ/src /path/to/moodle/lib/minify/matthiasmullie-minify/
mv minify-X.Y.ZZ/data /path/to/moodle/lib/minify/matthiasmullie-minify/
2) Go to https://github.com/matthiasmullie/path-converter/releases/ and unzip
Download the latest path-converter Source code (zip) and unzip it:
mv path-converter-A.B.C/src/ /path/to/moodle/lib/minify/matthiasmullie-pathconverter/
3) Apply the following patches:
MDL-68191: https://github.com/matthiasmullie/minify/issues/317 is a bug that stops
large sections of the CSS from being minimised, and also is a huge performance drain.
We have applied the fix sent upstream because the performance win is so big.
(E.g. one case I measured, with the bug was 40 seconds to minify CSS, with the fix was
a few seconds. This is one of the reasons Behat runs in the browser are so slow.)
Whenever this library is updated check if the fix is included and remove this note.
NOTE: As of 2020/12/08, only the first commit was brought into Moodle