UNPKG

@vitbokisch/next-optimized-images

Version:

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

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