{"id":42790785,"url":"https://github.com/gioppy/statamic-aggregate-assets","last_synced_at":"2026-01-29T23:36:43.295Z","repository":{"id":62510883,"uuid":"326162283","full_name":"gioppy/statamic-aggregate-assets","owner":"gioppy","description":"Aggregate Javascript and CSS files for better performances","archived":false,"fork":false,"pushed_at":"2021-04-27T12:49:39.000Z","size":58,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T04:22:54.968Z","etag":null,"topics":["css","javascript","performance","statamic","statamic-addon","statamic-v3"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gioppy.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":"2021-01-02T10:52:29.000Z","updated_at":"2024-07-15T22:31:56.000Z","dependencies_parsed_at":"2022-11-02T12:46:34.144Z","dependency_job_id":null,"html_url":"https://github.com/gioppy/statamic-aggregate-assets","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gioppy/statamic-aggregate-assets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioppy%2Fstatamic-aggregate-assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioppy%2Fstatamic-aggregate-assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioppy%2Fstatamic-aggregate-assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioppy%2Fstatamic-aggregate-assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gioppy","download_url":"https://codeload.github.com/gioppy/statamic-aggregate-assets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioppy%2Fstatamic-aggregate-assets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28890517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["css","javascript","performance","statamic","statamic-addon","statamic-v3"],"created_at":"2026-01-29T23:36:42.763Z","updated_at":"2026-01-29T23:36:43.287Z","avatar_url":"https://github.com/gioppy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Aggregate assets for Statamic 3\n\nAggregate CSS and JavaScript files into one single file for better loading performance.\n\n### How to use\n\nAfter installing the addon, create a new disk in the `config/filesystems.php` file:\n\n```\n'aggregated' =\u003e [\n    'driver' =\u003e 'local',\n    'root' =\u003e public_path('aggregated'),\n    'url' =\u003e '/aggregated',\n    'visibility' =\u003e 'public',\n]\n```\n\nYou can customize the root directory according to your needs. The only constraint is that the disc visibility must be publicly visible.\n\nTo aggregate files use tags pair `{{ aggregate:css }}` and `{{ aggregate:js }}` in your `layout.antlers.html` file.\n\nFor better usage, use Aggregate in conjunction with `{{ yield }}`:\n\n```\n\u003c!doctype html\u003e\n\u003chtml lang=\"{{ site:short_locale }}\"\u003e\n    \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        {{ aggregate:css }}\n        {{ yield:css }}\n        {{ /aggregate:css }}\n    \u003c/head\u003e\n    \u003cbody\u003e\n        {{ template_content }}\n\n        {{ aggregate:js }}\n        {{ yield:js }}\n        {{ /aggregate:js }}\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\nIn your blueprint `.antlers.html` file use as always:\n\n```\n...\n{{ section:css }}\n\u003clink rel=\"stylesheet\" href=\"/theme/styles/style1.css\" /\u003e\n\u003clink rel=\"stylesheet\" href=\"/theme/styles/style2.css\" /\u003e\n{{ /section:css }}\n\n{{ section:js }}\n\u003cscript src=\"/theme/scripts/script1.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"/theme/scripts/script2.js\"\u003e\u003c/script\u003e\n{{ /section:js }}\n```\n\nRemember that the contents of the {{ aggregate }} tags will be replaced with a single CSS or JavaScript tag: insert only locally CSS and JavaScript files.\n\n**Finally, remember that aggregation does not rewrite `url()` within CSS files.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgioppy%2Fstatamic-aggregate-assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgioppy%2Fstatamic-aggregate-assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgioppy%2Fstatamic-aggregate-assets/lists"}