12 lines
443 B
JavaScript
12 lines
443 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const iconsDir = path.join(__dirname, 'public', 'assets', 'icons');
|
|
fs.readdirSync(iconsDir).forEach(file => {
|
|
if (file.endsWith('.svg')) {
|
|
const filePath = path.join(iconsDir, file);
|
|
let content = fs.readFileSync(filePath, 'utf8');
|
|
content = content.replace(/stroke="#[0-9a-fA-F]{3,6}"/g, 'stroke="currentColor"');
|
|
fs.writeFileSync(filePath, content, 'utf8');
|
|
}
|
|
}); |