uglify-js-minify-css-allfiles 2.3.0 → 2.3.2
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.
- package/CHANGELOG.md +12 -0
- package/README.md +0 -3
- package/dist/module.js +17 -14
- package/dist/modules/hashManager.js +1 -1
- package/dist/modules/imageUtils.js +1 -1
- package/logs/log-02-13-2025.log +108 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.3.2] - 2025-02-14
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Fixed JS image versioning to handle existing versions and use global hash
|
|
13
|
+
|
|
14
|
+
## [2.3.1] - 2025-02-13
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Fixed `ext is not defined` error in image versioning log messages
|
|
19
|
+
|
|
8
20
|
## [2.3.0] - 2025-02-13
|
|
9
21
|
|
|
10
22
|
### Added
|
package/README.md
CHANGED
|
@@ -124,9 +124,6 @@ Automatic versioning for image references in JS and CSS files:
|
|
|
124
124
|
- Random hash generation for JS image references
|
|
125
125
|
- Support for multiple image formats (PNG, JPEG, GIF, SVG, WebP, etc.)
|
|
126
126
|
- Handles various image path formats:
|
|
127
|
-
- Absolute and relative paths
|
|
128
|
-
- Data URIs
|
|
129
|
-
- HTTP/HTTPS URLs
|
|
130
127
|
- Complex CSS background declarations
|
|
131
128
|
- image-set() syntax support
|
|
132
129
|
|
package/dist/module.js
CHANGED
|
@@ -28,27 +28,31 @@ import { resolveImagePath, resolveModulePath, makeRelativePath, containsFolder,
|
|
|
28
28
|
* @param {Logger} logger - Logger instance for tracking changes
|
|
29
29
|
* @param {HashManager} hashManager - Manages content-based hashing for images
|
|
30
30
|
* @param {string[]} targetExtensions - List of image extensions to process (e.g., ['.png', '.jpg'])
|
|
31
|
+
* @param {string} jsHashVersion - JS hash version string.
|
|
31
32
|
* @returns {Promise<{content: string, modified: boolean}>} Modified content and whether changes were made
|
|
32
33
|
*/
|
|
33
|
-
async function processPattern(pattern, content, fileExt, filePath, logger, hashManager, targetExtensions) {
|
|
34
|
+
async function processPattern(pattern, content, fileExt, filePath, logger, hashManager, targetExtensions, jsHashVersion) {
|
|
34
35
|
const promises = [];
|
|
35
36
|
let newContent = content;
|
|
36
37
|
let modified = false;
|
|
37
38
|
|
|
38
39
|
if (fileExt === '.js') {
|
|
39
|
-
const newHash =
|
|
40
|
+
const newHash = jsHashVersion;
|
|
40
41
|
|
|
41
|
-
newContent = content.replace(pattern, (match,
|
|
42
|
+
newContent = content.replace(pattern, (match, quote, imagePath, endQuote) => {
|
|
42
43
|
if (imagePath.startsWith('data:') || imagePath.startsWith('http://') || imagePath.startsWith('https://')) {
|
|
43
44
|
return match;
|
|
44
45
|
}
|
|
46
|
+
|
|
47
|
+
const cleanPath = imagePath.split('?')[0];
|
|
48
|
+
|
|
45
49
|
modified = true;
|
|
46
50
|
logger?.info('Updated JS image version', {
|
|
47
51
|
file: filePath,
|
|
48
|
-
image:
|
|
52
|
+
image: cleanPath,
|
|
49
53
|
newHash,
|
|
50
54
|
});
|
|
51
|
-
return `${
|
|
55
|
+
return `${quote}${cleanPath}?v=${newHash}${endQuote}`;
|
|
52
56
|
});
|
|
53
57
|
return { content: newContent, modified };
|
|
54
58
|
}
|
|
@@ -75,10 +79,7 @@ async function processPattern(pattern, content, fileExt, filePath, logger, hashM
|
|
|
75
79
|
|
|
76
80
|
if (!hash) {
|
|
77
81
|
newContent = newContent.replace(`${imagePath}?v=${marker}`, imagePath);
|
|
78
|
-
|
|
79
|
-
file: filePath,
|
|
80
|
-
image: imagePath + ext,
|
|
81
|
-
});
|
|
82
|
+
// 'Failed to generate hash, keeping original URL : ' + filePath;
|
|
82
83
|
continue;
|
|
83
84
|
}
|
|
84
85
|
|
|
@@ -86,7 +87,7 @@ async function processPattern(pattern, content, fileExt, filePath, logger, hashM
|
|
|
86
87
|
modified = true;
|
|
87
88
|
await logger?.info('Updated CSS image version', {
|
|
88
89
|
file: filePath,
|
|
89
|
-
image: imagePath
|
|
90
|
+
image: imagePath,
|
|
90
91
|
oldHash: hashManager.getPreviousHash(absoluteImagePath),
|
|
91
92
|
newHash: hash,
|
|
92
93
|
});
|
|
@@ -110,9 +111,10 @@ async function processPattern(pattern, content, fileExt, filePath, logger, hashM
|
|
|
110
111
|
* @param {string[]} [versioningOptions.extensions] - List of file extensions to version.
|
|
111
112
|
* @param {Logger} logger - Logger instance.
|
|
112
113
|
* @param {HashManager} hashManager - Hash manager instance.
|
|
114
|
+
* @param {string} jsHashVersion - JS hash version string.
|
|
113
115
|
* @returns {Promise<void>}
|
|
114
116
|
*/
|
|
115
|
-
async function updateImageReferences(filePath, versioningOptions, logger, hashManager) {
|
|
117
|
+
async function updateImageReferences(filePath, versioningOptions, logger, hashManager, jsHashVersion) {
|
|
116
118
|
const { extensions } = versioningOptions;
|
|
117
119
|
const targetExtensions =
|
|
118
120
|
extensions || DEFAULT_IMAGE_EXTENSIONS.map((ext) => (ext === 'jpe?g' ? ['.jpg', '.jpeg'] : ['.' + ext.replace('?', '')])).flat();
|
|
@@ -125,7 +127,7 @@ async function updateImageReferences(filePath, versioningOptions, logger, hashMa
|
|
|
125
127
|
let modified = false;
|
|
126
128
|
|
|
127
129
|
for (const pattern of patterns) {
|
|
128
|
-
const result = await processPattern(pattern, content, fileExt, filePath, logger, hashManager, targetExtensions);
|
|
130
|
+
const result = await processPattern(pattern, content, fileExt, filePath, logger, hashManager, targetExtensions, jsHashVersion);
|
|
129
131
|
content = result.content;
|
|
130
132
|
modified = modified || result.modified;
|
|
131
133
|
}
|
|
@@ -197,7 +199,7 @@ async function processFile(filePath, logger, options) {
|
|
|
197
199
|
}
|
|
198
200
|
result = output.styles;
|
|
199
201
|
} else {
|
|
200
|
-
|
|
202
|
+
// `Unsupported file type, skipping: ${filePath}`;
|
|
201
203
|
return;
|
|
202
204
|
}
|
|
203
205
|
|
|
@@ -289,6 +291,7 @@ export default async function minifyAll(contentPath, options = {}) {
|
|
|
289
291
|
const rootDir = resolvePath(contentPath || '');
|
|
290
292
|
const babelOptions = await resolveBabelOptions(useBabel);
|
|
291
293
|
const hashManager = useVersioning ? new HashManager(rootDir) : null;
|
|
294
|
+
const jsHashVersion = useVersioning ? crypto.randomBytes(16).toString('hex').substring(0, 8) : '';
|
|
292
295
|
|
|
293
296
|
if (hashManager) {
|
|
294
297
|
await hashManager.initialize();
|
|
@@ -312,7 +315,7 @@ export default async function minifyAll(contentPath, options = {}) {
|
|
|
312
315
|
|
|
313
316
|
// Apply versioning after successful processing if enabled
|
|
314
317
|
if (useVersioning && hashManager) {
|
|
315
|
-
await updateImageReferences(filePath, useVersioning, logger, hashManager);
|
|
318
|
+
await updateImageReferences(filePath, useVersioning, logger, hashManager, jsHashVersion);
|
|
316
319
|
}
|
|
317
320
|
|
|
318
321
|
logger?.incrementProcessedFiles(filePath);
|
|
@@ -24,7 +24,7 @@ export const IMAGE_PATTERNS = {
|
|
|
24
24
|
],
|
|
25
25
|
js: [
|
|
26
26
|
// Basic extension-based pattern for all quotes
|
|
27
|
-
new RegExp(`(['"\`])([^'"\`]*?\\.(?:${IMAGE_EXT_PATTERN}))(['"\`])`, 'gi'),
|
|
27
|
+
new RegExp(`(['"\`])([^'"\`]*?\\.(?:${IMAGE_EXT_PATTERN}))(?:\\?v=[^'"\`]*)?(['"\`])`, 'gi'),
|
|
28
28
|
],
|
|
29
29
|
};
|
|
30
30
|
|
package/logs/log-02-13-2025.log
CHANGED
|
@@ -220,3 +220,111 @@
|
|
|
220
220
|
[02/13/2025, 11:49:34] [INFO] Updated JS image reference with hash {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"./img/samples.svg","newHash":"bd916168"}
|
|
221
221
|
[02/13/2025, 11:49:34] [INFO] Updated file with versioned image references {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js"}
|
|
222
222
|
[02/13/2025, 11:49:34] [INFO] Processing Summary {"summary":{"totalFilesProcessed":5,"filesWithErrors":0,"errorCount":0,"errorFiles":[]}}
|
|
223
|
+
[02/13/2025, 13:04:42] [INFO] Starting minification process {"contentPath":"./test/","excludeFolder":"lib","useBabel":{"targets":"chrome 40"},"useVersioning":true}
|
|
224
|
+
[02/13/2025, 13:04:43] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\.image-hashes.json
|
|
225
|
+
[02/13/2025, 13:04:43] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\img\sample.jpg
|
|
226
|
+
[02/13/2025, 13:04:43] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\img\samples.svg
|
|
227
|
+
[02/13/2025, 13:04:43] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.css
|
|
228
|
+
[02/13/2025, 13:04:43] [ERROR] Failed to process file {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","error":"ext is not defined"}
|
|
229
|
+
[02/13/2025, 13:04:43] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.js
|
|
230
|
+
[02/13/2025, 13:04:43] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/samples.svg","newHash":"c5266cee"}
|
|
231
|
+
[02/13/2025, 13:04:43] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/sample.jpg","newHash":"c5266cee"}
|
|
232
|
+
[02/13/2025, 13:04:43] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/sample.jpg","newHash":"c5266cee"}
|
|
233
|
+
[02/13/2025, 13:04:43] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/sample.jpg./img/samples.svg","newHash":"c5266cee"}
|
|
234
|
+
[02/13/2025, 13:04:43] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/samples.svg","newHash":"c5266cee"}
|
|
235
|
+
[02/13/2025, 13:04:43] [INFO] Updated file with versioned image references {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js"}
|
|
236
|
+
[02/13/2025, 13:04:43] [INFO] Processing Summary {"summary":{"totalFilesProcessed":5,"filesWithErrors":0,"errorCount":1,"errorFiles":[]}}
|
|
237
|
+
[02/13/2025, 13:05:46] [INFO] Starting minification process {"contentPath":"./test/","excludeFolder":"lib","useBabel":{"targets":"chrome 40"},"useVersioning":true}
|
|
238
|
+
[02/13/2025, 13:05:47] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\.image-hashes.json
|
|
239
|
+
[02/13/2025, 13:05:47] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\img\sample.jpg
|
|
240
|
+
[02/13/2025, 13:05:47] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\img\samples.svg
|
|
241
|
+
[02/13/2025, 13:05:47] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.css
|
|
242
|
+
[02/13/2025, 13:05:47] [INFO] Updated CSS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"img/samples.svg","oldHash":"5e25d61b","newHash":"5e25d61b"}
|
|
243
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"img/sample.png"}
|
|
244
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"test.png"}
|
|
245
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"icon.svg"}
|
|
246
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"border.webp"}
|
|
247
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"photo.avif"}
|
|
248
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"bg.jpg"}
|
|
249
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"pattern.png"}
|
|
250
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"sprite.png"}
|
|
251
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"../img/sample.jpg"}
|
|
252
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"bg.jpg"}
|
|
253
|
+
[02/13/2025, 13:05:47] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"pattern.png"}
|
|
254
|
+
[02/13/2025, 13:05:47] [INFO] Updated file with versioned image references {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css"}
|
|
255
|
+
[02/13/2025, 13:05:47] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.js
|
|
256
|
+
[02/13/2025, 13:05:47] [INFO] Processing Summary {"summary":{"totalFilesProcessed":5,"filesWithErrors":0,"errorCount":0,"errorFiles":[]}}
|
|
257
|
+
[02/13/2025, 13:05:53] [INFO] Starting minification process {"contentPath":"./test/","excludeFolder":"lib","useBabel":{"targets":"chrome 40"},"useVersioning":true}
|
|
258
|
+
[02/13/2025, 13:05:54] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\.image-hashes.json
|
|
259
|
+
[02/13/2025, 13:05:54] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\img\sample.jpg
|
|
260
|
+
[02/13/2025, 13:05:54] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\img\samples.svg
|
|
261
|
+
[02/13/2025, 13:05:54] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.css
|
|
262
|
+
[02/13/2025, 13:05:54] [INFO] Updated CSS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"img/sample.jpg","oldHash":"64d54047","newHash":"64d54047"}
|
|
263
|
+
[02/13/2025, 13:05:54] [INFO] Updated CSS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"img/samples.svg","oldHash":"5e25d61b","newHash":"5e25d61b"}
|
|
264
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"img/sample.png"}
|
|
265
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"test.png"}
|
|
266
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"icon.svg"}
|
|
267
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"border.webp"}
|
|
268
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"photo.avif"}
|
|
269
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"bg.jpg"}
|
|
270
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"pattern.png"}
|
|
271
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"sprite.png"}
|
|
272
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"../img/sample.jpg"}
|
|
273
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"bg.jpg"}
|
|
274
|
+
[02/13/2025, 13:05:54] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"pattern.png"}
|
|
275
|
+
[02/13/2025, 13:05:54] [INFO] Updated file with versioned image references {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css"}
|
|
276
|
+
[02/13/2025, 13:05:54] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.js
|
|
277
|
+
[02/13/2025, 13:05:55] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/samples.svg","newHash":"e01dfe7a"}
|
|
278
|
+
[02/13/2025, 13:05:55] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/sample.jpg","newHash":"e01dfe7a"}
|
|
279
|
+
[02/13/2025, 13:05:55] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/sample.jpg./img/samples.svg","newHash":"e01dfe7a"}
|
|
280
|
+
[02/13/2025, 13:05:55] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/sample.jpg","newHash":"e01dfe7a"}
|
|
281
|
+
[02/13/2025, 13:05:55] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/samples.svg","newHash":"e01dfe7a"}
|
|
282
|
+
[02/13/2025, 13:05:55] [INFO] Updated file with versioned image references {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js"}
|
|
283
|
+
[02/13/2025, 13:05:55] [INFO] Processing Summary {"summary":{"totalFilesProcessed":5,"filesWithErrors":0,"errorCount":0,"errorFiles":[]}}
|
|
284
|
+
[02/13/2025, 13:06:40] [INFO] Starting minification process {"contentPath":"./test/","excludeFolder":"lib","useBabel":{"targets":"chrome 40"},"useVersioning":true}
|
|
285
|
+
[02/13/2025, 13:06:40] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\.image-hashes.json
|
|
286
|
+
[02/13/2025, 13:06:40] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\img\sample.jpg
|
|
287
|
+
[02/13/2025, 13:06:40] [INFO] Unsupported file type, skipping: C:\Users\PEARL\Desktop\_code\minify_contents\test\img\samples.svg
|
|
288
|
+
[02/13/2025, 13:06:40] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.css
|
|
289
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"img/sample.png"}
|
|
290
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"test.png"}
|
|
291
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"icon.svg"}
|
|
292
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"border.webp"}
|
|
293
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"photo.avif"}
|
|
294
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"bg.jpg"}
|
|
295
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"pattern.png"}
|
|
296
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"sprite.png"}
|
|
297
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"../img/sample.jpg"}
|
|
298
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"bg.jpg"}
|
|
299
|
+
[02/13/2025, 13:06:40] [WARN] Failed to generate hash, keeping original URL {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"pattern.png"}
|
|
300
|
+
[02/13/2025, 13:06:41] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.js
|
|
301
|
+
[02/13/2025, 13:06:41] [INFO] Processing Summary {"summary":{"totalFilesProcessed":5,"filesWithErrors":0,"errorCount":0,"errorFiles":[]}}
|
|
302
|
+
[02/13/2025, 13:09:24] [INFO] Starting minification process {"contentPath":"./test/","excludeFolder":"lib","useBabel":{"targets":"chrome 40"},"useVersioning":true}
|
|
303
|
+
[02/13/2025, 13:09:25] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.css
|
|
304
|
+
[02/13/2025, 13:09:25] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.js
|
|
305
|
+
[02/13/2025, 13:09:25] [INFO] Processing Summary {"summary":{"totalFilesProcessed":5,"filesWithErrors":0,"errorCount":0,"errorFiles":[]}}
|
|
306
|
+
[02/13/2025, 13:10:07] [INFO] Starting minification process {"contentPath":"./test/","excludeFolder":"lib","useBabel":{"targets":"chrome 40"},"useVersioning":true}
|
|
307
|
+
[02/13/2025, 13:10:07] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.css
|
|
308
|
+
[02/13/2025, 13:10:08] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.js
|
|
309
|
+
[02/13/2025, 13:10:08] [INFO] Processing Summary {"summary":{"totalFilesProcessed":5,"filesWithErrors":0,"errorCount":0,"errorFiles":[]}}
|
|
310
|
+
[02/13/2025, 13:10:21] [INFO] Starting minification process {"contentPath":"./test/","excludeFolder":"lib","useBabel":{"targets":"chrome 40"},"useVersioning":true}
|
|
311
|
+
[02/13/2025, 13:10:22] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.css
|
|
312
|
+
[02/13/2025, 13:10:22] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.js
|
|
313
|
+
[02/13/2025, 13:10:22] [INFO] Processing Summary {"summary":{"totalFilesProcessed":5,"filesWithErrors":0,"errorCount":0,"errorFiles":[]}}
|
|
314
|
+
[02/13/2025, 13:10:40] [INFO] Starting minification process {"contentPath":"./test/","excludeFolder":"lib","useBabel":{"targets":"chrome 40"},"useVersioning":true}
|
|
315
|
+
[02/13/2025, 13:10:41] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.css
|
|
316
|
+
[02/13/2025, 13:10:41] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.js
|
|
317
|
+
[02/13/2025, 13:10:41] [INFO] Processing Summary {"summary":{"totalFilesProcessed":5,"filesWithErrors":0,"errorCount":0,"errorFiles":[]}}
|
|
318
|
+
[02/13/2025, 13:21:29] [INFO] Starting minification process {"contentPath":"./test/","excludeFolder":"lib","useBabel":{"targets":"chrome 40"},"useVersioning":true}
|
|
319
|
+
[02/13/2025, 13:21:29] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.css
|
|
320
|
+
[02/13/2025, 13:21:29] [INFO] Updated CSS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"img/sample.jpg","oldHash":"64d54047","newHash":"64d54047"}
|
|
321
|
+
[02/13/2025, 13:21:29] [INFO] Updated CSS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css","image":"img/samples.svg","oldHash":"5e25d61b","newHash":"5e25d61b"}
|
|
322
|
+
[02/13/2025, 13:21:29] [INFO] Updated file with versioned image references {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.css"}
|
|
323
|
+
[02/13/2025, 13:21:30] [INFO] Writing file: C:\Users\PEARL\Desktop\_code\minify_contents\test\test.js
|
|
324
|
+
[02/13/2025, 13:21:30] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/sample.jpg./img/samples.svg","newHash":"1744e876"}
|
|
325
|
+
[02/13/2025, 13:21:30] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/sample.jpg","newHash":"1744e876"}
|
|
326
|
+
[02/13/2025, 13:21:30] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/samples.svg","newHash":"1744e876"}
|
|
327
|
+
[02/13/2025, 13:21:30] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/sample.jpg","newHash":"1744e876"}
|
|
328
|
+
[02/13/2025, 13:21:30] [INFO] Updated JS image version {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js","image":"\"./img/samples.svg","newHash":"1744e876"}
|
|
329
|
+
[02/13/2025, 13:21:30] [INFO] Updated file with versioned image references {"file":"C:\\Users\\PEARL\\Desktop\\_code\\minify_contents\\test\\test.js"}
|
|
330
|
+
[02/13/2025, 13:21:30] [INFO] Processing Summary {"summary":{"totalFilesProcessed":5,"filesWithErrors":0,"errorCount":0,"errorFiles":[]}}
|