{"id":18565317,"url":"https://github.com/pelican-plugins/minify","last_synced_at":"2025-06-27T21:34:24.901Z","repository":{"id":185109273,"uuid":"671830301","full_name":"pelican-plugins/minify","owner":"pelican-plugins","description":"Pelican plugin that minifies HTML, CSS, and JavaScript","archived":false,"fork":false,"pushed_at":"2024-08-20T07:45:10.000Z","size":83,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-20T15:05:39.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/pelican-plugins.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"justinmayer","liberapay":"pelican"}},"created_at":"2023-07-28T08:30:12.000Z","updated_at":"2024-08-20T07:45:14.000Z","dependencies_parsed_at":"2025-04-10T04:33:49.136Z","dependency_job_id":"7eae86d9-1ee1-46e9-abbd-9fbac9c52787","html_url":"https://github.com/pelican-plugins/minify","commit_stats":null,"previous_names":["pelican-plugins/minify"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pelican-plugins/minify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fminify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fminify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fminify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fminify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pelican-plugins","download_url":"https://codeload.github.com/pelican-plugins/minify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fminify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262335448,"owners_count":23295649,"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":"2024-11-06T22:18:30.006Z","updated_at":"2025-06-27T21:34:24.864Z","avatar_url":"https://github.com/pelican-plugins.png","language":"Python","funding_links":["https://github.com/sponsors/justinmayer","https://liberapay.com/pelican"],"categories":[],"sub_categories":[],"readme":"Minify: A Plugin for Pelican\n============================\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/pelican-plugins/minify/main.yml?branch=main)](https://github.com/pelican-plugins/minify/actions)\n[![PyPI Version](https://img.shields.io/pypi/v/pelican-minify)](https://pypi.org/project/pelican-minify/)\n[![Downloads](https://img.shields.io/pypi/dm/pelican-minify)](https://pypi.org/project/pelican-minify/)\n![License](https://img.shields.io/pypi/l/pelican-minify?color=blue)\n\nThis Pelican plugin can compress HTML \u0026 CSS files as well as inline CSS and JavaScript in HTML files.\n\nRequirements\n------------\n\nBecause this plugin depends on the [`minify-html`](https://pypi.org/project/minify-html) Python package, which in turn utilizes the Rust-based [`minify-html`](https://github.com/wilsonzlin/minify-html) project, you must have Cargo (the Rust package manager) installed and available on your `PATH`. Rust and Cargo can be installed on Mac systems via Homebrew:\n\n    brew install rust\n\nAlternatively, Rust and Cargo can be installed via your particular system’s package manager or via: \u003chttps://rustup.rs/\u003e\n\nInstallation\n------------\n\nThis plugin can be installed via:\n\n    python -m pip install pelican-minify\n\nAs long as you have not explicitly added a `PLUGINS` setting to your Pelican settings file, then the newly-installed plugin should be automatically detected and enabled. Otherwise, you must add `minify` to your existing `PLUGINS` list. For more information, please see the [How to Use Plugins](https://docs.getpelican.com/en/latest/plugins.html#how-to-use-plugins) documentation.\n\nUsage\n-----\n\nBy default, all HTML and CSS files will be compressed, including inline JavaScript and CSS rules in `\u003cscript\u003e` and `\u003cstyle\u003e` tags.\n\nTo configure the behavior of the plugin, add the following variables in your Pelican settings file (values shown here are the default values):\n\n```python\nCSS_MIN = True\nJS_MIN = True\nHTML_MIN = True\nINLINE_CSS_MIN = True\nINLINE_JS_MIN = True\n```\n\nPlease note that `INLINE_CSS_MIN` and `INLINE_JS_MIN` require that `HTML_MIN` be enabled.\n\nContributing\n------------\n\nContributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on [existing issues][].\n\nTo start contributing to this plugin, review the [Contributing to Pelican][] documentation, beginning with the **Contributing Code** section.\n\n[existing issues]: https://github.com/pelican-plugins/minify/issues\n[Contributing to Pelican]: https://docs.getpelican.com/en/latest/contribute.html\n\nLicense\n-------\n\nThis project is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelican-plugins%2Fminify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpelican-plugins%2Fminify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelican-plugins%2Fminify/lists"}