Metadata-Version: 2.4
Name: pelican-minifier
Version: 0.1.0
Summary: Minifies HTML, CSS, JS, and JSON in Pelican's output folder
Author-email: Vishal Chopra <digital.bill85@protonmail.com>
License: MIT
Project-URL: Homepage, https://github.com/layoutshub/pelican-minifier
Project-URL: Documentation, https://layoutshub.github.io/pelican-minifier-plugin.html
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pelican>=4.5
Requires-Dist: htmlmin
Requires-Dist: csscompressor
Requires-Dist: rjsmin
Requires-Dist: beautifulsoup4
Dynamic: license-file

# Pelican Minifier

Minify your Pelican blog's output — including HTML, CSS, JS, and JSON — automatically after generation.

---

## ✨ Features

- ✅ Minifies HTML, CSS, JavaScript, and JSON
- ✅ Handles inline `<style>`, `<script>`, and JSON-LD inside HTML
- ✅ Automatically runs after Pelican build
- ✅ Lightweight and dependency-minimal
- ✅ Works with Pelican 4.5+ namespace plugin system

---

## 📦 Installation

```bash
pip install pelican-minifier
````

Or install from source:

```bash
git clone https://github.com/layoutshub/pelican-minifier.git
cd pelican-minifier
pip install -e .
```

---

## ⚙️ Usage

In your `pelicanconf.py`:

```python
PLUGINS = ["minifier"]
```

Optionally, to disable minification during dev builds:

```python
MINIFY = False
```

---

## 📁 Files Handled

| File Type | Action                                    |
| --------- | ----------------------------------------- |
| `.html`   | Minifies HTML, inline CSS/JS, and JSON-LD |
| `.css`    | Minifies using `csscompressor`            |
| `.js`     | Minifies using `rjsmin`                   |
| `.json`   | Compact JSON formatting                   |

---

## 📚 Documentation

Full documentation:
📄 [https://layoutshub.github.io/pelican-minifier-plugin.html](https://layoutshub.github.io/pelican-minifier-plugin.html)

---

## 🔗 Links

* 🏠 Homepage: [https://github.com/layoutshub/pelican-minifier/](https://github.com/layoutshub/pelican-minifier/)
* 📦 PyPI: Coming soon!
* 🛠 Issues: Use [GitHub Issues](https://github.com/layoutshub/pelican-minifier/issues)

---

## 🧑‍💻 Authors

Built by [Vishal Chopra](https://github.com/vishalchopra666) | [Twitter](https://twitter.com/vishalchopra666)
See `pyproject.toml` for full author list.

---

## 📝 License

MIT License.
Free to use and modify.

---

