UNPKG

next-optimized-images

Version:

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

16 lines (14 loc) 281 B
/** * Build options for the webpack image trace loader * * @param {object} nextConfig - next.js configuration * @returns {object} */ const getImageTraceLoaderOptions = ({ imageTrace, }) => ({ ...(imageTrace || {}), }); module.exports = { getImageTraceLoaderOptions, };