Updated ci check
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
a3bd8da8cc
commit
be527c382e
|
@ -95,7 +95,7 @@ export async function optimizeImages() {
|
||||||
if (alreadyOptimizedImageHashes.has(fileHash)) {
|
if (alreadyOptimizedImageHashes.has(fileHash)) {
|
||||||
console.log(`Skipping ${imagePath}`);
|
console.log(`Skipping ${imagePath}`);
|
||||||
return;
|
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
|
// Need to optimize image on production, not ideal since image wont be cached for later deploys
|
||||||
console.warn(
|
console.warn(
|
||||||
`New image found to optimize: ${imagePath} Please run npm run build:images locally!`
|
`New image found to optimize: ${imagePath} Please run npm run build:images locally!`
|
||||||
|
|
Loading…
Reference in New Issue