Metalsmith wrapper for optipng
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
npm-shrinkwrap.json
package.json

README.md

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