{"id":21330592,"url":"https://github.com/friendsofredaxo/minify","last_synced_at":"2025-07-12T09:30:44.617Z","repository":{"id":41176267,"uuid":"63774443","full_name":"FriendsOfREDAXO/minify","owner":"FriendsOfREDAXO","description":"Minifiziert und bündelt CSS/Sass, JavaScript, HTML und Bilder im Medienpool.","archived":false,"fork":false,"pushed_at":"2023-09-11T12:14:43.000Z","size":425,"stargazers_count":43,"open_issues_count":5,"forks_count":5,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-04-15T00:27:49.586Z","etag":null,"topics":["assets","concat","css","frontend","js","minify","redaxo","redaxo-addon","sass"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FriendsOfREDAXO.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-20T10:59:13.000Z","updated_at":"2023-12-31T15:10:54.000Z","dependencies_parsed_at":"2022-09-03T12:00:27.389Z","dependency_job_id":null,"html_url":"https://github.com/FriendsOfREDAXO/minify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfREDAXO%2Fminify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfREDAXO%2Fminify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfREDAXO%2Fminify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfREDAXO%2Fminify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FriendsOfREDAXO","download_url":"https://codeload.github.com/FriendsOfREDAXO/minify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225810158,"owners_count":17527614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assets","concat","css","frontend","js","minify","redaxo","redaxo-addon","sass"],"created_at":"2024-11-21T22:22:36.562Z","updated_at":"2024-11-21T22:22:37.103Z","avatar_url":"https://github.com/FriendsOfREDAXO.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minify\n\nMinifies HTML, combines/minfies CSS and JS files.\n\n![Screenshot](https://raw.githubusercontent.com/FriendsOfREDAXO/minify/assets/minify_01.png)\n\nDieses Addon ermöglicht das minimieren und bündeln von CSS und JS Dateien.\n\nDazu kann man unter dem Punkt 'Minify' beliebig viele Sets anlegen. Wichtig ist, dass der Name eines Sets pro Typ (CSS/JS) nur einmal vorkommen kann. In das Feld 'Assets' kommen zeilengetrennt die Pfade zu den einzelnen Dateien. Wenn eine Datei mit '.scss' endet, wird sie automatisch kompiliert. Die Pfade müssen Redaxo-Root relativ sein.\n\nAnschliessend wird ein Snippet à la \"REX_MINIFY[type=css set=default]\" generiert, welches im Template an beliebiger Stelle platziert werden kann. Das Snippet ist jeweils in der Set-Übersicht zu finden und kann von da kopiert werden. Das Snippet wird im Frontend automatisch durch einen entsprechenden HTML-Tag ersetzt.\n\n## Tricks\n\n### Sets via PHP definieren\n\nBeispiel von @cukabeka\n\n```php\n\t$minify = new minify();\n\tforeach ((glob(rex_path::assets().\"/css/*.css\")) as $css) {\n\t\t$minify-\u003eaddFile(\"/\".str_replace(rex_path::base(),\"\",$css), $set = \"bla\");\n\t};\n\t\n\techo $minify-\u003eminify($type = 'css', $set = \"bla\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofredaxo%2Fminify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendsofredaxo%2Fminify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofredaxo%2Fminify/lists"}