Socket
Socket
Sign inDemoInstall

improved-image-webpack-loader

Package Overview
Dependencies
349
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

improved-image-webpack-loader

Image loader module for webpack


Version published
Maintainers
1
0

Weekly downloads

Readme

Source

improved-image-webpack-loader

Image loader module for webpack

Minify PNG, JPEG, GIF and SVG images with imagemin

gifsicle — Compress GIF images
mozjpeg — Compress JPEG images
optipng — Compress PNG images
svgo — Compress SVG images
pngquant — Compress PNG images

Issues with the output should be reported on the imagemin issue tracker.

Link to npm: https://www.npmjs.com/package/improved-image-webpack-loader

Install

$ npm install image-webpack-loader --save-dev

Usage

Basically the same as https://github.com/tcoopman/image-webpack-loader Look in that repository for more info and guidelines..

Difference: You can now pass an options object for each optimizer:

loader: 'improved-image-webpack-loader',
				query: {
					gifsicle: {
						interlaced: true,
						optimizationLevel: 3,
						number: 256,
						...
					},
					mozjpeg: {
						quality: 60-100,
						progressive: true,
						...
					},
					optipng: {
						optimizationLevel: 7,
						...
					},
					pngquent: {
						...
					},
					svgo: {
						...
					}
				}

MIT (http://www.opensource.org/licenses/mit-license.php)

FAQs

Last updated on 08 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc