{"id":29196607,"url":"https://github.com/flancer32/mage2_ext_minify","last_synced_at":"2025-07-02T06:07:48.276Z","repository":{"id":62505335,"uuid":"84855445","full_name":"flancer32/mage2_ext_minify","owner":"flancer32","description":"Minify static JS/CSS in Magento 2","archived":false,"fork":false,"pushed_at":"2017-03-17T08:33:11.000Z","size":650,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T10:51:28.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/flancer32.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-03-13T17:28:39.000Z","updated_at":"2020-06-12T19:56:37.000Z","dependencies_parsed_at":"2022-11-02T12:16:24.020Z","dependency_job_id":null,"html_url":"https://github.com/flancer32/mage2_ext_minify","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/flancer32/mage2_ext_minify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flancer32%2Fmage2_ext_minify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flancer32%2Fmage2_ext_minify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flancer32%2Fmage2_ext_minify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flancer32%2Fmage2_ext_minify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flancer32","download_url":"https://codeload.github.com/flancer32/mage2_ext_minify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flancer32%2Fmage2_ext_minify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263083719,"owners_count":23411165,"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":[],"created_at":"2025-07-02T06:07:45.566Z","updated_at":"2025-07-02T06:07:48.261Z","avatar_url":"https://github.com/flancer32.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mage2_ext_minify\nMinify static JS/CSS in Magento 2\n\n\n## Overview\n\nThere are some troubles with JS/CSS minification in Magento 2 \n([one](http://magento.stackexchange.com/questions/134206/magento-2-how-to-work-with-minified-js-and-css-files),\n [two](http://magento.stackexchange.com/questions/120405/how-to-minify-optimise-javascript-on-magento-2), \n [three](https://community.magento.com/t5/Hosting-Performance/CSS-and-js-minify-dont-work/td-p/1330), ...).\n \nThis extension just minifies all JS and CSS files in `./pub/static/**` folder using \n[matthiasmullie/minify](https://github.com/matthiasmullie/minify) module. All minified files stay on the places \nof the original files. All original files are backed up with extension `*.not_minified`.\n\nSample Magento 2 application with default Luma theme has 60/100 points on Google PageSpeed Insights and\n2.4 MB size for it's home page before minification and 69/100 points and 1.5 MB after minification \n([details](./docs/overview.md)).\n\nCAUTION: JS and CSS files in `./pub/static/**` folder are links to the files in `./vendor/**` folder, \nthese files will be minified in result. Use this module in case you can re-deploy original files.\n\n## Installation\n\n    $ composer require flancer32/mage2_ext_minify\n    $ ./bin/magento setup:upgrade\n    \n    \n\n## Usage\n\nPerform compilation of the static content before minification:\n\n    $ ./bin/magento setup:static-content:deploy\n    \nor switch to production mode:\n\n    $ ./bin/magento deploy:mode:set production\n    \nthen run minification:\n\n    $ ./bin/magento fl32:minify:make\n    ...\n    File '/var/www/vhosts/sample_mage2_module/work/pub/static/frontend/Magento/luma/en_US/tiny_mce/themes/simple/skins/o2k7/ui.css' is minified.\n    Total 2266 JS and 225 CSS files are found in './pub/static/' folder.\n    Total 2266 JS and 225 CSS files are minified.\n    Don't forget reset permissions for the files.\n\n\nTo revert minification:\n\n    $ ./bin/magento fl32:minify:revert\n    ...\n    File '/var/www/vhosts/sample_mage2_module/work/pub/static/frontend/Magento/luma/en_US/tiny_mce/themes/simple/skins/o2k7/ui.css' is reverted.\n    Total 2266 JS and 225 CSS files are found in './pub/static/' folder.\n    Total 2266 JS and 225 CSS files are reverted.\n    Don't forget reset permissions for the files.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflancer32%2Fmage2_ext_minify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflancer32%2Fmage2_ext_minify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflancer32%2Fmage2_ext_minify/lists"}