ultimate-jekyll-manager 0.0.218 → 0.0.219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,6 +10,7 @@ const GitHubCache = require('./utils/github-cache');
|
|
|
10
10
|
|
|
11
11
|
// Load package
|
|
12
12
|
const rootPathProject = Manager.getRootPath('project');
|
|
13
|
+
const ujmConfig = Manager.getUJMConfig();
|
|
13
14
|
|
|
14
15
|
// Settings
|
|
15
16
|
const CACHE_DIR = '.temp/cache/imagemin';
|
|
@@ -58,6 +59,12 @@ async function imagemin(complete) {
|
|
|
58
59
|
return complete();
|
|
59
60
|
}
|
|
60
61
|
|
|
62
|
+
// Skip if disabled in config
|
|
63
|
+
if (ujmConfig?.imagemin?.enabled === false) {
|
|
64
|
+
logger.log('⏭️ Skipping imagemin - disabled in ultimate-jekyll-manager.json');
|
|
65
|
+
return complete();
|
|
66
|
+
}
|
|
67
|
+
|
|
61
68
|
// Track timing
|
|
62
69
|
const startTime = Date.now();
|
|
63
70
|
|