🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

improved-image-webpack-loader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

improved-image-webpack-loader

Image loader module for webpack

0.1.1
latest
Source
npm
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 08 Dec 2016

Did you know?

Socket

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