4.0.2 • Published 3 years ago

parcel-plugin-imagemin v4.0.2

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

Build Status

parcel-plugin-imagemin

A parcel plugin for image minification

Affected image formats

Currently supported extensions are .jpg, .jpeg, .png, .gif, .svg

Installation

yarn add parcel-plugin-imagemin -D

or

npm install parcel-plugin-imagemin -D

Usage

Image minification is only done on production builds so parcel build ..., this to improve rebuild speeds in dev mode (the imagemin data is cached so it should be pretty quick in prod as well)

Configuration

Configuration file used by this plugin is imagemin.config.js

module.exports = {
  "gifsicle": { "optimizationLevel": 2, "interlaced": false, "colors": 10 },
  "mozjpeg": { "progressive": true, "quality": 10 },
  "pngquant": { "quality": [0.25, 0.5] },
  "svgo": {
    "plugins": [
      { "removeViewBox": false },
      { "cleanupIDs": true },
    ]
  },
  "webp": { "quality": 10 }
}

See imagemin's API for further information: https://github.com/imagemin

License

MIT License

4.0.2

3 years ago

4.0.1

4 years ago

4.0.1-beta

4 years ago

4.0.0

4 years ago

3.0.0

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago