项目
在 GitHub 查看
nuxt/image
关于
为 Nuxt 应用提供开箱即用的图像优化。
设计与媒体可以做什么
- <nuxt-img> drop-in replacement for the native <img> element
- <nuxt-picture> drop-in replacement for the native <picture> element.
- Built-in image resizer and transformer with unjs/ipx
- Support 20+ providers
实测星标增长
- 24小时
- 0
- 7天
- -2
- 15天
- -3
- 1个月
- -3
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Nuxt Image
Plug-and-play image optimization for Nuxt apps. Resize and transform your images using built-in optimizer or your favorite images CDN.
Features
<nuxt-img>drop-in replacement for the native<img>element<nuxt-picture>drop-in replacement for the native<picture>element.- Built-in image resizer and transformer with unjs/ipx
- Support 20+ providers
- Generate responsive sizes
- Optimize using modern formats such as webp and avif
- ... and more
Installation
Install @nuxt/image dependency to your project:
npx nuxt add image
Nuxt 2
Note: This branch is for Nuxt 3, 4 and 5 compatible module. Checkout v0 branch for Nuxt 2 support. (Announcement)
Contributing
- Clone this repository
- Install pnpm
- Install dependencies using
pnpm install - Run
pnpm dev:prepareto generate type stubs. - Use
pnpm devto start playground in development mode.
📑 License
Published under the MIT License
探索相关项目
加载中…
