optimize() ->postOptimizationAsString(function ($svgLine){ $svgLine = str_replace('fill="black"', 'fill="currentColor"', $svgLine); return $svgLine; }) ->save(); }; return [ [ // Define a source directory for the sets like a node_modules/ or vendor/ directory... 'source' => __DIR__.'/../dist/coolicons SVG/*', // Define a destination directory for your icons. The below is a good default... 'destination' => __DIR__.'/../resources/svg', // Enable "safe" mode which will prevent deletion of old icons... 'safe' => false, // Call an optional callback to manipulate the icon // with the pathname of the icon and the settings from above... 'after' => $svgNormalization, ], ];