UNPKG

@vitbokisch/next-optimized-images

Version:

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

12 lines (10 loc) 263 B
/** * Build options for the webpack image trace loader * * @param {object} nextConfig - next.js configuration * @returns {object} */ const getImageTraceLoaderOptions = ({ imageTrace }) => ({ ...(imageTrace || {}), }) export { getImageTraceLoaderOptions }