PHPackages                             gioppy/statamic-aggregate-assets - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gioppy/statamic-aggregate-assets

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gioppy/statamic-aggregate-assets
================================

Aggregate Javascript and CSS files for better performances.

0.0.3(5y ago)1195PHP

Since Jan 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gioppy/statamic-aggregate-assets)[ Packagist](https://packagist.org/packages/gioppy/statamic-aggregate-assets)[ RSS](/packages/gioppy-statamic-aggregate-assets/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Aggregate assets for Statamic 3
-------------------------------

[](#aggregate-assets-for-statamic-3)

Aggregate CSS and JavaScript files into one single file for better loading performance.

### How to use

[](#how-to-use)

After installing the addon, create a new disk in the `config/filesystems.php` file:

```
'aggregated' => [
    'driver' => 'local',
    'root' => public_path('aggregated'),
    'url' => '/aggregated',
    'visibility' => 'public',
]

```

You can customize the root directory according to your needs. The only constraint is that the disc visibility must be publicly visible.

To aggregate files use tags pair `{{ aggregate:css }}` and `{{ aggregate:js }}` in your `layout.antlers.html` file.

For better usage, use Aggregate in conjunction with `{{ yield }}`:

```

        {{ aggregate:css }}
        {{ yield:css }}
        {{ /aggregate:css }}

        {{ template_content }}

        {{ aggregate:js }}
        {{ yield:js }}
        {{ /aggregate:js }}

```

In your blueprint `.antlers.html` file use as always:

```
...
{{ section:css }}

{{ /section:css }}

{{ section:js }}

{{ /section:js }}

```

Remember that the contents of the {{ aggregate }} tags will be replaced with a single CSS or JavaScript tag: insert only locally CSS and JavaScript files.

**Finally, remember that aggregation does not rewrite `url()` within CSS files.**

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~57 days

Total

3

Last Release

1839d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fc47a128db5ee83c716a4a83478d5b506ac22615e0f9e683426a7bd46431808e?d=identicon)[gioppy](/maintainers/gioppy)

---

Top Contributors

[![gioppy](https://avatars.githubusercontent.com/u/1745489?v=4)](https://github.com/gioppy "gioppy (1 commits)")

---

Tags

cssjavascriptperformancestatamicstatamic-addonstatamic-v3

### Embed Badge

![Health badge](/badges/gioppy-statamic-aggregate-assets/health.svg)

```
[![Health](https://phpackages.com/badges/gioppy-statamic-aggregate-assets/health.svg)](https://phpackages.com/packages/gioppy-statamic-aggregate-assets)
```

###  Alternatives

[statamic/seo-pro

65440.7k](/packages/statamic-seo-pro)[jacksleight/statamic-bard-texstyle

17172.5k](/packages/jacksleight-statamic-bard-texstyle)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

13128.3k](/packages/withcandour-aardvark-seo)[alt-design/alt-sitemap

Alt Sitemap addon, create a sitemap from Statamic entries

1219.0k](/packages/alt-design-alt-sitemap)[studio1902/statamic-peak-tools

11146.7k](/packages/studio1902-statamic-peak-tools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
