{"id":19145970,"url":"https://github.com/Weeken/farm-plugin-compression","last_synced_at":"2025-04-19T13:33:32.556Z","repository":{"id":232713911,"uuid":"784677586","full_name":"Weeken/farm-plugin-compression","owner":"Weeken","description":"A rust plugin for farm to compress resources.","archived":false,"fork":false,"pushed_at":"2024-07-25T10:25:47.000Z","size":333,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-25T23:49:22.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Weeken.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-04-10T10:31:25.000Z","updated_at":"2024-09-12T09:10:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed337215-d1ae-4d0b-a0a9-da45f3561d63","html_url":"https://github.com/Weeken/farm-plugin-compression","commit_stats":null,"previous_names":["weeken/farm-plugin-compression"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Weeken%2Ffarm-plugin-compression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Weeken%2Ffarm-plugin-compression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Weeken%2Ffarm-plugin-compression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Weeken%2Ffarm-plugin-compression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Weeken","download_url":"https://codeload.github.com/Weeken/farm-plugin-compression/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223801154,"owners_count":17205005,"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-09T07:42:52.839Z","updated_at":"2024-11-09T07:42:56.607Z","avatar_url":"https://github.com/Weeken.png","language":"JavaScript","readme":"## farm-plugin-compression\r\n\r\nA rust plugin for [farm](https://github.com/farm-fe/farm) to compress resources.\r\n\r\n### Install\r\n\r\n```bash\r\npnpm add -D farm-plugin-compression\r\n```\r\n\r\n\u003e [!NOTE]\r\n\u003e \"@farmfe/core\": \"^1.2.0\" --\u003e \"farm-plugin-compression\": \"0.0.4\"  \r\n\u003e \"@farmfe/core\": \"^1.3.0\" --\u003e \"farm-plugin-compression\": \"^0.1.x\"\r\n\r\n### Usage\r\n\r\n```ts\r\nimport { defineConfig } from \"@farmfe/core\";\r\nimport compression from \"farm-plugin-compression\";\r\n\r\nexport default defineConfig({\r\n  plugins: [\r\n    [\r\n      \"farm-plugin-compression\",\r\n      {\r\n        level: \"best\", // level: \"best\" | \"none\" | \"default\" | \"fast\"\r\n        exclude: [\"jpg\", \"png\"], // resource type like jpg, png, and others generate in dist\r\n      },\r\n    ],\r\n    // or\r\n    compression({ level: \"best\", exclude: [\"jpg\", \"png\"] }),\r\n  ],\r\n});\r\n```\r\n","funding_links":[],"categories":["Plugins"],"sub_categories":["RustPlugins"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWeeken%2Ffarm-plugin-compression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWeeken%2Ffarm-plugin-compression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWeeken%2Ffarm-plugin-compression/lists"}