0.0.1 • Published 3 years ago

netlify-plugin-ipx v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Netlify Optimized Images

on-demand image optimazation for Netlify using ipx.

😺 Online demo: https://netlify-ipx.netlify.app

Usage

Add netlify-plugin-ipx as devDependency:

# npm
npm i -D netlify-plugin-ipx

# yarn
yarn add --dev netlify-plugin-ipx

Create netlify/functions/ipx.ts:

import { createIPXHandler } from 'netlify-plugin-ipx/function'

export const handler = createIPXHandler({
  domains: ['images.unsplash.com']
})

Now you can use IPX to optimize both local and remote assets ✨

Resize /test.jpg (in dist):

Resize and change format for a remote url:

Local development

  • Clone repository
  • Install dependencies with yarn install
  • Install netlify development server with yarn dev
  • Open http://localhost:8888

License

MIT

0.0.1

3 years ago

0.0.0-14

3 years ago

0.0.0-12

3 years ago

0.0.0-11

3 years ago

0.0.0-10

3 years ago

0.0.0-9

3 years ago

0.0.0-8

3 years ago

0.0.0-7

3 years ago

0.0.0-6

3 years ago

0.0.0-5

3 years ago

0.0.0-4

3 years ago

0.0.0-3

3 years ago

0.0.0-2

3 years ago

0.0.0-1

3 years ago

0.0.0

3 years ago