UNPKG

next-optimized-images

Version:

Automatically optimize images used in next.js projects (jpeg, png, gif, svg).

4 lines (3 loc) 201 B
module.exports = (content) => { // eslint-disable-line arrow-body-style return `${content.toString('utf-8').replace('export default', 'var raw =')}; module.exports = raw; exports.default = raw;`; };