{"id":19292554,"url":"https://github.com/paramonovav/spress-html-compress","last_synced_at":"2025-04-22T07:31:51.322Z","repository":{"id":57035884,"uuid":"51549996","full_name":"paramonovav/spress-html-compress","owner":"paramonovav","description":"Compress/minify your HTML","archived":false,"fork":false,"pushed_at":"2020-07-18T19:57:44.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-18T22:03:04.241Z","etag":null,"topics":["compress","minify","spress"],"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/paramonovav.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":"2016-02-11T21:56:51.000Z","updated_at":"2021-11-06T13:08:50.000Z","dependencies_parsed_at":"2022-08-23T21:00:11.382Z","dependency_job_id":null,"html_url":"https://github.com/paramonovav/spress-html-compress","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramonovav%2Fspress-html-compress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramonovav%2Fspress-html-compress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramonovav%2Fspress-html-compress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paramonovav%2Fspress-html-compress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paramonovav","download_url":"https://codeload.github.com/paramonovav/spress-html-compress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223892325,"owners_count":17220736,"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":["compress","minify","spress"],"created_at":"2024-11-09T22:31:31.476Z","updated_at":"2024-11-09T22:32:20.873Z","avatar_url":"https://github.com/paramonovav.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Minify HTML\n[![Latest Stable Version](https://poser.pugx.org/paramonovav/spress-html-compress/v)](//packagist.org/packages/paramonovav/spress-html-compress) [![Total Downloads](https://poser.pugx.org/paramonovav/spress-html-compress/downloads)](//packagist.org/packages/paramonovav/spress-html-compress) [![Latest Unstable Version](https://poser.pugx.org/paramonovav/spress-html-compress/v/unstable)](//packagist.org/packages/paramonovav/spress-html-compress) [![License](https://poser.pugx.org/paramonovav/spress-html-compress/license)](//packagist.org/packages/paramonovav/spress-html-compress)\n![Spress 2 ready](https://img.shields.io/badge/Spress%202-ready-brightgreen.svg)\n\nCompress/minify your HTML\n\n### How to install?\n\nGo to your Spress site and add the following to your `composer.json` and run \n`composer update`:\n\n```json\n\"require\": {\n    \"paramonovav/spress-html-compress\": \"2.0.*\"\n}\n```\n\n### How to use?\n\nAdd the following to your config.yml to exclude some files from minify/compress process:\n\n```yaml\nhtml_compress_exclude: ['.htaccess','robots.txt','crossdomain.xml', 'sitemap.xml','nortonsw_bc7be3d0-796e-0.html','BingSiteAuth.xml']\nhtml_compress_exclude_pattern: '/(.*)?\\.(jpe?g|png|gif|ico|svg|psd|tiff|webm|mov|avi|mkv|mp4|eot|ttf|otf|woff|woff2|webp)$/i'\n```\n\nJust run build command:\n\n```bash\nspress site:build\n```\n\nIf you want to disable compression use the following config\n\n```yaml\nhtml_compress: false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparamonovav%2Fspress-html-compress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparamonovav%2Fspress-html-compress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparamonovav%2Fspress-html-compress/lists"}