You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The imageOptimization takes a very long time for only a few images and I'd only like it to run on production, but I still need images to be prefixed with urlPath when they are not optimized and are given eleventyConfig.addPassthroughCopy if on development. This way, when the plugin doesn't optimize the images, their reference source still works in the rendered html files.
The text was updated successfully, but these errors were encountered:
codysaylor
changed the title
Pass urlPath to
Pass urlPath to imageOptimization even if disabled
Jan 31, 2021
@sebastianbenz I'm not sure which part of the image processing slows it down so much. If "imageOptimization" only does the compression, then yes, that's all I'm requesting be toggleable. That process seems to be what is slowing down my builds dramatically. Perhaps we could pass in a disabled property in the config for imageOptimization, which would turn that functionality off but still be able to prefix the image paths with urlPath. If it were faster, it would be no problem, but in development I need to keep the urlPath but disable the slow image optimization.
The imageOptimization takes a very long time for only a few images and I'd only like it to run on production, but I still need images to be prefixed with urlPath when they are not optimized and are given eleventyConfig.addPassthroughCopy if on development. This way, when the plugin doesn't optimize the images, their reference source still works in the rendered html files.
The text was updated successfully, but these errors were encountered: