UNPKG

@hashicorp/next-optimized-images

Version:

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

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