zoom a medias
This commit is contained in:
12
front/public/assets/icons/_fix-svg-stroke.js
Normal file
12
front/public/assets/icons/_fix-svg-stroke.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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');
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user