Skip to content
Metalsmith wrapper for optipng
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
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
You can’t perform that action at this time.