{"id":13679404,"url":"https://github.com/kavu/webp-loader","last_synced_at":"2026-01-21T12:42:06.090Z","repository":{"id":3371779,"uuid":"49238535","full_name":"kavu/webp-loader","owner":"kavu","description":"WebP image loader \u0026 converter for Webpack","archived":false,"fork":false,"pushed_at":"2023-01-07T05:49:40.000Z","size":3053,"stargazers_count":93,"open_issues_count":17,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T12:18:42.042Z","etag":null,"topics":["loader","webp","webpack"],"latest_commit_sha":null,"homepage":null,"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/kavu.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":"2016-01-08T00:04:34.000Z","updated_at":"2024-06-15T16:13:34.000Z","dependencies_parsed_at":"2023-01-13T16:22:36.052Z","dependency_job_id":null,"html_url":"https://github.com/kavu/webp-loader","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavu%2Fwebp-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavu%2Fwebp-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavu%2Fwebp-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavu%2Fwebp-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kavu","download_url":"https://codeload.github.com/kavu/webp-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251569548,"owners_count":21610575,"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":["loader","webp","webpack"],"created_at":"2024-08-02T13:01:05.191Z","updated_at":"2026-01-21T12:42:06.063Z","avatar_url":"https://github.com/kavu.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# webp-loader\n\n[![Build Status](https://travis-ci.org/kavu/webp-loader.svg?branch=master)](https://travis-ci.org/kavu/webp-loader)\n\n[WebP](https://developers.google.com/speed/webp/) image loader \u0026 converter loader for Webpack.\n\n## Install\n\n```sh\nnpm install webp-loader --save-dev\n```\n\n## Usage\n\nHere is the example of using `webp-loader` along with common [file-loader](https://github.com/webpack/file-loader):\n\n```javascript\nloaders: [\n  {\n    test: /\\.(jpe?g|png)$/i,\n    loaders: [\n      'file-loader',\n      'webp-loader'\n    ]\n  }\n]\n```\n\nUnfortunately, if you wish to pass an options for internal [imagemin-webp](https://github.com/imagemin/imagemin-webp) you should pass a options in JSON form:\n\n```javascript\nloaders: [\n  {\n    test: /\\.(jpe?g|png)$/i,\n    loaders: [\n      'file-loader',\n      'webp-loader?{quality: 13}'\n    ]\n  }\n]\n```\n\nNormally you don't want to convert all of your images to WebP format, you just want to make alternate versions. You can use [multi-loader](https://github.com/webpack-contrib/multi-loader) to achieve it:\n\n```javascript\nloaders: [\n  {\n    test: /\\.(jpe?g|png)$/i,\n    loader: multi(\n      'file-loader?name=[name].[ext].webp!webp-loader?{quality: 95}'\n      'file-loader?name=[name].[ext]',\n    )\n  },\n]\n```\n\n## Options\n\nFor all possible options please visit \"API\" section of the official [imagemin-webp README](https://github.com/imagemin/imagemin-webp#imageminwebpoptions).\n\n## Inspiration\n\n`webp-loader` is heavily inspired by [tcoopman/image-webpack-loader](https://github.com/tcoopman/image-webpack-loader).\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkavu%2Fwebp-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkavu%2Fwebp-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkavu%2Fwebp-loader/lists"}