SVGO

Optimize SVG files with SVGO

Options See on deno.land

extensions string[]

The list of extensions this plugin applies to

Default:
[ ".svg" ]
options object

Options passed to SVGO. See https://github.com/svg/svgo#configuration

Description

This plugin loads all .svg files and optimizes them using SVGO.

Installation

Import this plugin in your _config.ts file to use it:

import lume from "lume/mod.ts";
import svgo from "lume/plugins/svgo.ts";

const site = lume();

site.use(svgo(/* Options */));

export default site;