mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-17 14:28:25 +00:00
Add hook to optimize staged SVGs before commit (#166)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import fs from 'fs';
|
||||
import processSvg from './render/processSvg';
|
||||
|
||||
const svgFiles = process.argv.slice(4);
|
||||
|
||||
svgFiles.forEach(async svgFile => {
|
||||
const content = fs.readFileSync(svgFile);
|
||||
const svg = await processSvg(content);
|
||||
fs.writeFileSync(svgFile, svg, 'utf-8');
|
||||
});
|
||||
Reference in New Issue
Block a user