{"id":13506616,"url":"https://github.com/wemake-services/nuxt-imagemin","last_synced_at":"2025-10-04T22:31:39.397Z","repository":{"id":49302608,"uuid":"131766752","full_name":"wemake-services/nuxt-imagemin","owner":"wemake-services","description":"Nuxt module to minify your images. Works with: png, jpeg, gif, and svg","archived":true,"fork":false,"pushed_at":"2021-06-19T07:56:43.000Z","size":744,"stargazers_count":178,"open_issues_count":10,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-29T00:26:24.693Z","etag":null,"topics":["image-optimisation","image-optimization","image-processing","nuxt","nuxt-module","nuxtjs","vuejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/wemake-services.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"sobolevn"}},"created_at":"2018-05-01T21:49:22.000Z","updated_at":"2025-03-15T20:59:01.000Z","dependencies_parsed_at":"2022-09-19T05:30:20.464Z","dependency_job_id":null,"html_url":"https://github.com/wemake-services/nuxt-imagemin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/wemake-services/nuxt-imagemin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wemake-services%2Fnuxt-imagemin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wemake-services%2Fnuxt-imagemin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wemake-services%2Fnuxt-imagemin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wemake-services%2Fnuxt-imagemin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wemake-services","download_url":"https://codeload.github.com/wemake-services/nuxt-imagemin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wemake-services%2Fnuxt-imagemin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278386099,"owners_count":25978109,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["image-optimisation","image-optimization","image-processing","nuxt","nuxt-module","nuxtjs","vuejs"],"created_at":"2024-08-01T01:00:54.590Z","updated_at":"2025-10-04T22:31:38.795Z","avatar_url":"https://github.com/wemake-services.png","language":"JavaScript","funding_links":["https://patreon.com/sobolevn"],"categories":["Uncategorized","JavaScript"],"sub_categories":["Uncategorized"],"readme":"# nuxt-imagemin\n\n**Deprecated: use [official package](https://www.npmjs.com/package/@nuxtjs/imagemin) instead**\n\n[![wemake.services](https://img.shields.io/badge/-wemake.services-green.svg?label=%20\u0026logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC%2FxhBQAAAAFzUkdCAK7OHOkAAAAbUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP%2F%2F%2F5TvxDIAAAAIdFJOUwAjRA8xXANAL%2Bv0SAAAADNJREFUGNNjYCAIOJjRBdBFWMkVQeGzcHAwksJnAPPZGOGAASzPzAEHEGVsLExQwE7YswCb7AFZSF3bbAAAAABJRU5ErkJggg%3D%3D)](https://wemake.services) [![Build Status](https://travis-ci.org/wemake-services/nuxt-imagemin.svg?branch=master)](https://travis-ci.org/wemake-services/nuxt-imagemin)\n\n`Nuxt` module to minify your images.\nWorks with: `png`, `jpeg`, `gif`, and `svg`.\n\n## Installation\n\n```\nnpm install --save nuxt-imagemin\nyarn add nuxt-imagemin\n```\n\nAdd `nuxt-imagemin` to your `nuxt.config.js`:\n\n```js\n{\n  modules: [\"nuxt-imagemin\"];\n}\n```\n\n## Usage\n\n1. Put your images inside `assets` folder, for example: `logo.png`\n2. Then create an element to render it: `\u003cimg src=\"~/assets/logo.png\"\u003e`\n3. When you will bundle your app for production, `nuxt` will minify your image assets\n\nRead more about [how assets work](https://nuxtjs.org/guide/assets/).\n\n## Options\n\nWe use `imagemin` plugin for `webpack` internally.\nIt has a lot of [options](https://www.npmjs.com/package/imagemin-webpack-plugin#new-imageminpluginoptions).\nWe pass any provided options into the `imagemin` itself:\n\n```js\n{\n  modules: [\n    [\n      \"nuxt-imagemin\",\n      {\n        optipng: { optimizationLevel: 5 },\n        gifsicle: { optimizationLevel: 2 }\n      }\n    ]\n  ];\n}\n```\n### Custom plugins\n\nIf you want to add a custom plugin for `imagemin`, you can follow this steps with `imagemin-webp` as example.\n\n```js\nimport imageminWebp from 'imagemin-webp'\n\nmodule.exports = {\n  modules: [\n    ['nuxt-imagemin', {\n      plugins: [\n        imageminWebp({quality: 50})\n      ]\n    }]\n  ]\n}\n```\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwemake-services%2Fnuxt-imagemin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwemake-services%2Fnuxt-imagemin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwemake-services%2Fnuxt-imagemin/lists"}