Skip to content

Commit

Permalink
Add custom optimize function option
Browse files Browse the repository at this point in the history
Makes it so it a custom optimize function can be use
 instead of the "default" one.
 Like a different version of svgo optimize.
  • Loading branch information
ZuperZee committed Mar 26, 2021
1 parent 175de62 commit a3cf916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

module.exports = function svg(options) {
const { optimize } = require('svgo');
module.exports = function svg(options, optimize) {
const optimize = optimize || require('svgo').optimize;
return {
name: 'svgo',
transform: (code, id) => {
Expand Down

0 comments on commit a3cf916

Please sign in to comment.