gatsby-plugin-optimize-svgs

1.0.5 • Public • Published

gatsby-plugin-optimize-svgs

Build Status

A Gatsby Plugin to minify SVGs output to the filesystem during the build. Uses svgo under the hood to minify SVGs.

Read the blog post on minifying SVGs for some more context.

Usage

Install:

$ npm install gatsby-plugin-optimize-svgs

Add to gatsby-config.js:

module.exports = {
  plugins: [
    'gatsby-plugin-optimize-svgs',
  ],
};

Example Output

59 SVGs minified, reducing the total size from 447780 bytes to 208237 bytes, a reduction of 53.5%!

Package Sidebar

Install

npm i gatsby-plugin-optimize-svgs

Weekly Downloads

2,812

Version

1.0.5

License

MIT

Unpacked Size

4.47 kB

Total Files

5

Last publish

Collaborators

  • vzhou842