📦 plugin-ideal-image
아주 이상적인 이미지(반응형, 지연 로딩, 저화질 플레이스홀더)를 만들어주는 도큐사우루스 플러그인입니다.
정보
By default, the plugin is inactive in development so you could always view full-scale images. If you want to debug the ideal image behavior, you could set the disableInDev option to false.
설치
- npm
- Yarn
- pnpm
- Bun
npm install --save @docusaurus/plugin-ideal-image
yarn add @docusaurus/plugin-ideal-image
pnpm add @docusaurus/plugin-ideal-image
bun add @docusaurus/plugin-ideal-image
사용법
해당 플러그인은 PNG, GIF, JPG 포맷만 지원합니다.
import Image from '@theme/IdealImage';
import thumbnail from './path/to/img.png';
// your React code
<Image img=