{"id":18336629,"url":"https://github.com/mmintel/statamic-asset-manifest","last_synced_at":"2025-04-09T19:56:04.447Z","repository":{"id":92632706,"uuid":"129398780","full_name":"mmintel/statamic-asset-manifest","owner":"mmintel","description":"Addon for Statamic: searches occurences of files and replaces them as listed in the manifest","archived":false,"fork":false,"pushed_at":"2018-12-09T15:47:07.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T12:20:35.499Z","etag":null,"topics":[],"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/mmintel.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-13T12:23:49.000Z","updated_at":"2018-11-15T01:44:25.000Z","dependencies_parsed_at":"2023-08-21T21:02:05.552Z","dependency_job_id":null,"html_url":"https://github.com/mmintel/statamic-asset-manifest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmintel%2Fstatamic-asset-manifest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmintel%2Fstatamic-asset-manifest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmintel%2Fstatamic-asset-manifest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmintel%2Fstatamic-asset-manifest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmintel","download_url":"https://codeload.github.com/mmintel/statamic-asset-manifest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103911,"owners_count":21048245,"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-05T20:08:26.224Z","updated_at":"2025-04-09T19:56:04.425Z","avatar_url":"https://github.com/mmintel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# statamic-asset-manifest\nAddon for [Statamic](https://statamic.com?rfsn=1226699.c208cc): searches occurences of files and replaces them as listed in the manifest\n\nHeavily inspired by https://github.com/edcs/laravel-mix-statamic.\n\n# Installation\n## with git\nRun this command in the root of your theme:\n\n`git submodule add git@github.com:mmintel/statamic-asset-manifest.git site/addons/AssetManifest`\n\n## without git\n[Download](https://github.com/mmintel/statamic-asset-manifest/archive/master.zip) the addon and place it in your [Statamic](https://statamic.com?rfsn=1226699.c208cc) folder under `site/addons/AssetManifest`.\n\n# Usage\nJust place an `asset-manifest.json` in your theme and reference your assets via `{{ asset_manifest:js }}` or `{{ asset_manifest:css }}` and this addon will replace them with the associated files of your manifest.\n\nA manifest file looks like that:\n```JSON\n{\n  \"/css/default.css\":\"/css/default-9c1d17762e887e413460d516954c2406.css\",\n  \"/js/default.js\":\"/js/default-2706e5c549bb2e6acd588e27880516cd.js\"\n}\n```\n\nThis addon will not generate this manifest for you, it will just replace your assets. To generate this file you should use a build tool like Gulp, Grunt, Webpack, NPM scripts or whatever.\n\n**If no manifest file was found it will simply load the files without hashes.**\n\n## Importing specific files\nThe `asset_manifest` tag works exactly like the `theme` tag. So e.g. `{{ asset_manifest:css }}` will import `/css/default.css` and `{{ asset_manifest:css src=\"test\" }}` will import `/css/test.css`.\n\nThis addon will not generate this manifest for you, it will just replace your assets. To generate this file you should use a build tool like Gulp, Grunt, Webpack, NPM scripts or whatever.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmintel%2Fstatamic-asset-manifest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmintel%2Fstatamic-asset-manifest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmintel%2Fstatamic-asset-manifest/lists"}