0.0.2 • Published 7 years ago

metalsmith-optipng v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

Metalsmith wrapper for optipng

Example use

npm i metalsmith-optipng --save
const optipng = require('metalsmith-optipng')
Metalsmith(__dirname)
	...
	.use(optipng({
		pattern: '**/*.png'
		options: ['-o7']
	})
	...

Parameters

  • pattern is relative to your source and uses multimatch / glob to choose which files to apply to
  • options are passed along to optipng