@julien-lin/universal-pwa-core 1.1.0 → 1.1.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/dist/index.cjs +13 -0
- package/dist/index.js +13 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -731,6 +731,19 @@ async function generateIcons(options) {
|
|
|
731
731
|
throw new Error(`Failed to generate splash screen ${size.name}: ${message}`);
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
+
if (format === "png") {
|
|
735
|
+
try {
|
|
736
|
+
const appleIconPath = (0, import_path5.join)(outputDir, "apple-touch-icon.png");
|
|
737
|
+
await image.clone().resize(180, 180, {
|
|
738
|
+
fit: "cover",
|
|
739
|
+
position: "center"
|
|
740
|
+
}).png({ quality, compressionLevel: 9 }).toFile(appleIconPath);
|
|
741
|
+
generatedFiles.push(appleIconPath);
|
|
742
|
+
} catch (err) {
|
|
743
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
744
|
+
console.warn(`Warning: Failed to generate apple-touch-icon: ${message}`);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
734
747
|
return {
|
|
735
748
|
icons,
|
|
736
749
|
splashScreens,
|
package/dist/index.js
CHANGED
|
@@ -665,6 +665,19 @@ async function generateIcons(options) {
|
|
|
665
665
|
throw new Error(`Failed to generate splash screen ${size.name}: ${message}`);
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
+
if (format === "png") {
|
|
669
|
+
try {
|
|
670
|
+
const appleIconPath = join5(outputDir, "apple-touch-icon.png");
|
|
671
|
+
await image.clone().resize(180, 180, {
|
|
672
|
+
fit: "cover",
|
|
673
|
+
position: "center"
|
|
674
|
+
}).png({ quality, compressionLevel: 9 }).toFile(appleIconPath);
|
|
675
|
+
generatedFiles.push(appleIconPath);
|
|
676
|
+
} catch (err) {
|
|
677
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
678
|
+
console.warn(`Warning: Failed to generate apple-touch-icon: ${message}`);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
668
681
|
return {
|
|
669
682
|
icons,
|
|
670
683
|
splashScreens,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@julien-lin/universal-pwa-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Moteur de scan, génération et injection pour UniversalPWA",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pwa",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"workbox-routing": "^7.4.0",
|
|
50
50
|
"workbox-strategies": "^7.4.0",
|
|
51
51
|
"zod": "^4.2.1",
|
|
52
|
-
"@julien-lin/universal-pwa-templates": "^1.1.
|
|
52
|
+
"@julien-lin/universal-pwa-templates": "^1.1.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@vitest/coverage-v8": "^2.1.4",
|