mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 19:21:18 -04:00
raise webpack's threshold for asset size warnings
This commit is contained in:
@@ -58,7 +58,10 @@ function optimizeHtml() {
|
||||
|
||||
function optimizeImages() {
|
||||
// allow skipping this step via an env variable to save time during CI, etc.
|
||||
if (process.env.SKIP_OPTIMIZE_IMAGES === "true") return Promise.resolve("skipped");
|
||||
if (process.env.SKIP_OPTIMIZE_IMAGES === "true") {
|
||||
console.log("Skipping image optimization...");
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return gulp
|
||||
.src(["public/**/*.{gif,jpg,jpeg,png,svg}", "!public/assets/emoji/**/*"], { base: "./" })
|
||||
|
Reference in New Issue
Block a user