ultimate-jekyll-manager 1.9.18 → 1.9.20
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.
|
@@ -188,7 +188,7 @@ async function imagemin(complete) {
|
|
|
188
188
|
// This await only ever runs in build mode — dev mode short-circuits via `!Manager.isBuildMode()`
|
|
189
189
|
// above (so `npm start` never blocks on this), letting BrowserSync reload as images land later.
|
|
190
190
|
await new Promise((resolve, reject) => {
|
|
191
|
-
src(filesToProcess, { base: 'src/assets/images' })
|
|
191
|
+
src(filesToProcess, { base: 'src/assets/images', encoding: false })
|
|
192
192
|
.pipe(lowercaseExtTransform())
|
|
193
193
|
.pipe(responsive({
|
|
194
194
|
[`**/${RESPONSIVE_GLOB}`]: responsiveConfigs
|
|
@@ -373,6 +373,7 @@ function lowercaseExtTransform() {
|
|
|
373
373
|
if (file.isNull()) {
|
|
374
374
|
file.contents = jetpack.read(file.path, 'buffer');
|
|
375
375
|
}
|
|
376
|
+
logger.log(`🔍 Uppercase ext: ${file.relative}, isNull=${file.isNull()}, isBuffer=${file.isBuffer()}, contentsLen=${file.contents ? file.contents.length : 'N/A'}, firstBytes=${file.contents ? file.contents.slice(0, 4).toString('hex') : 'N/A'}`);
|
|
376
377
|
file.path = file.path.slice(0, -ext.length) + ext.toLowerCase();
|
|
377
378
|
}
|
|
378
379
|
cb(null, file);
|