|
|
|
@ -95,7 +95,7 @@ export async function optimizeImages() { |
|
|
|
|
if (alreadyOptimizedImageHashes.has(fileHash)) { |
|
|
|
|
console.log(`Skipping ${imagePath}`); |
|
|
|
|
return; |
|
|
|
|
} else if (process.env.CI === "true") { |
|
|
|
|
} else if (process.env.CI) { |
|
|
|
|
// Need to optimize image on production, not ideal since image wont be cached for later deploys
|
|
|
|
|
console.warn( |
|
|
|
|
`New image found to optimize: ${imagePath} Please run npm run build:images locally!` |
|
|
|
|