const sharp = require('sharp'); const fs = require('fs'); // Конвертация icon-192.svg в icon-192.png sharp('icon-192.svg') .png() .toFile('icon-192.png') .then(() => { console.log('icon-192.png created'); }) .catch(err => { console.error('Error creating icon-192.png:', err); }); // Конвертация icon-512.svg в icon-512.png sharp('icon-512.svg') .png() .toFile('icon-512.png') .then(() => { console.log('icon-512.png created'); }) .catch(err => { console.error('Error creating icon-512.png:', err); });