-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow to specify a custom output paths
- Loading branch information
Showing
105 changed files
with
265 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!doctype html><html><head><link rel="shortcut icon" href="/public/path/assets/favicon.ico"><link rel="icon" type="image/png" sizes="16x16" href="/public/path/assets/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/public/path/assets/favicon-32x32.png"><link rel="manifest" href="/public/path/assets/manifest.json"><meta name="mobile-web-app-capable" content="yes"><meta name="theme-color" content="#fff"><meta name="application-name"><link rel="apple-touch-icon" sizes="57x57" href="/public/path/assets/apple-touch-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="/public/path/assets/apple-touch-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="/public/path/assets/apple-touch-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="/public/path/assets/apple-touch-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="/public/path/assets/apple-touch-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="/public/path/assets/apple-touch-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="/public/path/assets/apple-touch-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="/public/path/assets/apple-touch-icon-152x152.png"><link rel="apple-touch-icon" sizes="167x167" href="/public/path/assets/apple-touch-icon-167x167.png"><link rel="apple-touch-icon" sizes="180x180" href="/public/path/assets/apple-touch-icon-180x180.png"><link rel="apple-touch-icon" sizes="1024x1024" href="/public/path/assets/apple-touch-icon-1024x1024.png"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" href="/public/path/assets/apple-touch-startup-image-320x460.png"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" href="/public/path/assets/apple-touch-startup-image-640x920.png"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="/public/path/assets/apple-touch-startup-image-640x1096.png"><link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" href="/public/path/assets/apple-touch-startup-image-750x1294.png"><link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3)" href="/public/path/assets/apple-touch-startup-image-1182x2208.png"><link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3)" href="/public/path/assets/apple-touch-startup-image-1242x2148.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 1)" href="/public/path/assets/apple-touch-startup-image-748x1024.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" href="/public/path/assets/apple-touch-startup-image-768x1004.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)" href="/public/path/assets/apple-touch-startup-image-1496x2048.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" href="/public/path/assets/apple-touch-startup-image-1536x2008.png"><link rel="icon" type="image/png" sizes="228x228" href="/public/path/assets/coast-228x228.png"><meta name="msapplication-TileColor" content="#fff"><meta name="msapplication-TileImage" content="/public/path/assets/mstile-144x144.png"><meta name="msapplication-config" content="/public/path/assets/browserconfig.xml"><link rel="yandex-tableau-widget" href="/public/path/assets/yandex-browser-manifest.json"></head><body></body></html> |
Binary file added
BIN
+3.24 KB
test/fixtures/expected/outputpathoption/test/path/android-chrome-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.75 KB
test/fixtures/expected/outputpathoption/test/path/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.35 KB
test/fixtures/expected/outputpathoption/test/path/android-chrome-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+838 Bytes
test/fixtures/expected/outputpathoption/test/path/android-chrome-36x36.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.12 KB
test/fixtures/expected/outputpathoption/test/path/android-chrome-384x384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.13 KB
test/fixtures/expected/outputpathoption/test/path/android-chrome-48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.1 KB
test/fixtures/expected/outputpathoption/test/path/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.65 KB
test/fixtures/expected/outputpathoption/test/path/android-chrome-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.18 KB
test/fixtures/expected/outputpathoption/test/path/android-chrome-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-1024x1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.62 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-114x114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.64 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.01 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.2 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.42 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-167x167.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.11 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.28 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-57x57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.27 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.6 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.75 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.11 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon-precomposed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.11 KB
test/fixtures/expected/outputpathoption/test/path/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.6 KB
...res/expected/outputpathoption/test/path/apple-touch-startup-image-1182x2208.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+41.4 KB
...res/expected/outputpathoption/test/path/apple-touch-startup-image-1242x2148.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+41.1 KB
...res/expected/outputpathoption/test/path/apple-touch-startup-image-1496x2048.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.1 KB
...res/expected/outputpathoption/test/path/apple-touch-startup-image-1536x2008.png
Oops, something went wrong.
Binary file added
BIN
+7.79 KB
...tures/expected/outputpathoption/test/path/apple-touch-startup-image-320x460.png
Oops, something went wrong.
Binary file added
BIN
+18.2 KB
...ures/expected/outputpathoption/test/path/apple-touch-startup-image-640x1096.png
Oops, something went wrong.
Binary file added
BIN
+17.1 KB
...tures/expected/outputpathoption/test/path/apple-touch-startup-image-640x920.png
Oops, something went wrong.
Binary file added
BIN
+18.6 KB
...ures/expected/outputpathoption/test/path/apple-touch-startup-image-748x1024.png
Oops, something went wrong.
Binary file added
BIN
+22.1 KB
...ures/expected/outputpathoption/test/path/apple-touch-startup-image-750x1294.png
Oops, something went wrong.
Binary file added
BIN
+21.7 KB
...ures/expected/outputpathoption/test/path/apple-touch-startup-image-768x1004.png
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
test/fixtures/expected/outputpathoption/test/path/browserconfig.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square70x70logo src="/public/path/assets/mstile-70x70.png"/> | ||
<square150x150logo src="/public/path/assets/mstile-150x150.png"/> | ||
<wide310x150logo src="/public/path/assets/mstile-310x150.png"/> | ||
<square310x310logo src="/public/path/assets/mstile-310x310.png"/> | ||
<TileColor>#fff</TileColor> | ||
|
||
</tile> | ||
|
||
</msapplication> | ||
|
||
</browserconfig> |
Oops, something went wrong.
Binary file added
BIN
+392 Bytes
test/fixtures/expected/outputpathoption/test/path/favicon-16x16.png
Oops, something went wrong.
Binary file added
BIN
+727 Bytes
test/fixtures/expected/outputpathoption/test/path/favicon-32x32.png
Oops, something went wrong.
Binary file not shown.
Binary file added
BIN
+6.98 KB
test/fixtures/expected/outputpathoption/test/path/firefox_app_128x128.png
Oops, something went wrong.
Binary file added
BIN
+34.9 KB
test/fixtures/expected/outputpathoption/test/path/firefox_app_512x512.png
Oops, something went wrong.
Binary file added
BIN
+3.05 KB
test/fixtures/expected/outputpathoption/test/path/firefox_app_60x60.png
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
test/fixtures/expected/outputpathoption/test/path/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"name": null, | ||
"short_name": null, | ||
"description": null, | ||
"dir": "auto", | ||
"lang": "en-US", | ||
"display": "standalone", | ||
"orientation": "any", | ||
"start_url": "/?homescreen=1", | ||
"background_color": "#fff", | ||
"theme_color": "#fff", | ||
"icons": [ | ||
{ | ||
"src": "/public/path/assets/android-chrome-36x36.png", | ||
"sizes": "36x36", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/public/path/assets/android-chrome-48x48.png", | ||
"sizes": "48x48", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/public/path/assets/android-chrome-72x72.png", | ||
"sizes": "72x72", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/public/path/assets/android-chrome-96x96.png", | ||
"sizes": "96x96", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/public/path/assets/android-chrome-144x144.png", | ||
"sizes": "144x144", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/public/path/assets/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/public/path/assets/android-chrome-256x256.png", | ||
"sizes": "256x256", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/public/path/assets/android-chrome-384x384.png", | ||
"sizes": "384x384", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/public/path/assets/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
test/fixtures/expected/outputpathoption/test/path/manifest.webapp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": "1.0", | ||
"name": null, | ||
"description": null, | ||
"icons": { | ||
"60": "/public/path/assets/firefox_app_60x60.png", | ||
"128": "/public/path/assets/firefox_app_128x128.png", | ||
"512": "/public/path/assets/firefox_app_512x512.png" | ||
}, | ||
"developer": { | ||
"name": null, | ||
"url": null | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+1.11 KB
test/fixtures/expected/outputpathoption/test/path/yandex-browser-50x50.png
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
test/fixtures/expected/outputpathoption/test/path/yandex-browser-manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"version": "1.0", | ||
"api_version": 1, | ||
"layout": { | ||
"logo": "/public/path/assets/yandex-browser-50x50.png", | ||
"color": "#fff", | ||
"show_title": true | ||
} | ||
} |
Binary file added
BIN
+3.24 KB
test/fixtures/expected/publicpathoption/assets/android-chrome-144x144.png
Oops, something went wrong.
Binary file added
BIN
+4.75 KB
test/fixtures/expected/publicpathoption/assets/android-chrome-192x192.png
Oops, something went wrong.
Binary file added
BIN
+6.35 KB
test/fixtures/expected/publicpathoption/assets/android-chrome-256x256.png
Oops, something went wrong.
Binary file added
BIN
+838 Bytes
test/fixtures/expected/publicpathoption/assets/android-chrome-36x36.png
Oops, something went wrong.
Binary file added
BIN
+9.12 KB
test/fixtures/expected/publicpathoption/assets/android-chrome-384x384.png
Oops, something went wrong.
Binary file added
BIN
+1.13 KB
test/fixtures/expected/publicpathoption/assets/android-chrome-48x48.png
Oops, something went wrong.
Binary file added
BIN
+14.1 KB
test/fixtures/expected/publicpathoption/assets/android-chrome-512x512.png
Oops, something went wrong.
Binary file added
BIN
+1.65 KB
test/fixtures/expected/publicpathoption/assets/android-chrome-72x72.png
Oops, something went wrong.
Binary file added
BIN
+2.18 KB
test/fixtures/expected/publicpathoption/assets/android-chrome-96x96.png
Oops, something went wrong.
Binary file added
BIN
+28 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-1024x1024.png
Oops, something went wrong.
Binary file added
BIN
+2.62 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-114x114.png
Oops, something went wrong.
Binary file added
BIN
+2.64 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-120x120.png
Oops, something went wrong.
Binary file added
BIN
+3.01 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-144x144.png
Oops, something went wrong.
Binary file added
BIN
+3.2 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-152x152.png
Oops, something went wrong.
Binary file added
BIN
+3.42 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-167x167.png
Oops, something went wrong.
Binary file added
BIN
+4.11 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-180x180.png
Oops, something went wrong.
Binary file added
BIN
+1.28 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-57x57.png
Oops, something went wrong.
Binary file added
BIN
+1.27 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-60x60.png
Oops, something went wrong.
Binary file added
BIN
+1.6 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-72x72.png
Oops, something went wrong.
Binary file added
BIN
+1.75 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-76x76.png
Oops, something went wrong.
Binary file added
BIN
+4.11 KB
test/fixtures/expected/publicpathoption/assets/apple-touch-icon-precomposed.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+29.6 KB
...xtures/expected/publicpathoption/assets/apple-touch-startup-image-1182x2208.png
Oops, something went wrong.
Binary file added
BIN
+41.4 KB
...xtures/expected/publicpathoption/assets/apple-touch-startup-image-1242x2148.png
Oops, something went wrong.
Binary file added
BIN
+41.1 KB
...xtures/expected/publicpathoption/assets/apple-touch-startup-image-1496x2048.png
Oops, something went wrong.
Binary file added
BIN
+49.1 KB
...xtures/expected/publicpathoption/assets/apple-touch-startup-image-1536x2008.png
Oops, something went wrong.
Binary file added
BIN
+7.79 KB
...fixtures/expected/publicpathoption/assets/apple-touch-startup-image-320x460.png
Oops, something went wrong.
Binary file added
BIN
+18.2 KB
...ixtures/expected/publicpathoption/assets/apple-touch-startup-image-640x1096.png
Oops, something went wrong.
Binary file added
BIN
+17.1 KB
...fixtures/expected/publicpathoption/assets/apple-touch-startup-image-640x920.png
Oops, something went wrong.
Binary file added
BIN
+18.6 KB
...ixtures/expected/publicpathoption/assets/apple-touch-startup-image-748x1024.png
Oops, something went wrong.
Binary file added
BIN
+22.1 KB
...ixtures/expected/publicpathoption/assets/apple-touch-startup-image-750x1294.png
Oops, something went wrong.
Binary file added
BIN
+21.7 KB
...ixtures/expected/publicpathoption/assets/apple-touch-startup-image-768x1004.png
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
test/fixtures/expected/publicpathoption/assets/browserconfig.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square70x70logo src="/another/path/assets/mstile-70x70.png"/> | ||
<square150x150logo src="/another/path/assets/mstile-150x150.png"/> | ||
<wide310x150logo src="/another/path/assets/mstile-310x150.png"/> | ||
<square310x310logo src="/another/path/assets/mstile-310x310.png"/> | ||
<TileColor>#fff</TileColor> | ||
|
||
</tile> | ||
|
||
</msapplication> | ||
|
||
</browserconfig> |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
Binary file added
BIN
+6.98 KB
test/fixtures/expected/publicpathoption/assets/firefox_app_128x128.png
Oops, something went wrong.
Binary file added
BIN
+34.9 KB
test/fixtures/expected/publicpathoption/assets/firefox_app_512x512.png
Oops, something went wrong.
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
test/fixtures/expected/publicpathoption/assets/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"name": null, | ||
"short_name": null, | ||
"description": null, | ||
"dir": "auto", | ||
"lang": "en-US", | ||
"display": "standalone", | ||
"orientation": "any", | ||
"start_url": "/?homescreen=1", | ||
"background_color": "#fff", | ||
"theme_color": "#fff", | ||
"icons": [ | ||
{ | ||
"src": "/another/path/assets/android-chrome-36x36.png", | ||
"sizes": "36x36", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/another/path/assets/android-chrome-48x48.png", | ||
"sizes": "48x48", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/another/path/assets/android-chrome-72x72.png", | ||
"sizes": "72x72", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/another/path/assets/android-chrome-96x96.png", | ||
"sizes": "96x96", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/another/path/assets/android-chrome-144x144.png", | ||
"sizes": "144x144", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/another/path/assets/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/another/path/assets/android-chrome-256x256.png", | ||
"sizes": "256x256", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/another/path/assets/android-chrome-384x384.png", | ||
"sizes": "384x384", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/another/path/assets/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
test/fixtures/expected/publicpathoption/assets/manifest.webapp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": "1.0", | ||
"name": null, | ||
"description": null, | ||
"icons": { | ||
"60": "/another/path/assets/firefox_app_60x60.png", | ||
"128": "/another/path/assets/firefox_app_128x128.png", | ||
"512": "/another/path/assets/firefox_app_512x512.png" | ||
}, | ||
"developer": { | ||
"name": null, | ||
"url": null | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+1.11 KB
test/fixtures/expected/publicpathoption/assets/yandex-browser-50x50.png
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
test/fixtures/expected/publicpathoption/assets/yandex-browser-manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"version": "1.0", | ||
"api_version": 1, | ||
"layout": { | ||
"logo": "/another/path/assets/yandex-browser-50x50.png", | ||
"color": "#fff", | ||
"show_title": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!doctype html><html><head><link rel="shortcut icon" href="/another/path/assets/favicon.ico"><link rel="icon" type="image/png" sizes="16x16" href="/another/path/assets/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/another/path/assets/favicon-32x32.png"><link rel="manifest" href="/another/path/assets/manifest.json"><meta name="mobile-web-app-capable" content="yes"><meta name="theme-color" content="#fff"><meta name="application-name"><link rel="apple-touch-icon" sizes="57x57" href="/another/path/assets/apple-touch-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="/another/path/assets/apple-touch-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="/another/path/assets/apple-touch-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="/another/path/assets/apple-touch-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="/another/path/assets/apple-touch-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="/another/path/assets/apple-touch-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="/another/path/assets/apple-touch-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="/another/path/assets/apple-touch-icon-152x152.png"><link rel="apple-touch-icon" sizes="167x167" href="/another/path/assets/apple-touch-icon-167x167.png"><link rel="apple-touch-icon" sizes="180x180" href="/another/path/assets/apple-touch-icon-180x180.png"><link rel="apple-touch-icon" sizes="1024x1024" href="/another/path/assets/apple-touch-icon-1024x1024.png"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" href="/another/path/assets/apple-touch-startup-image-320x460.png"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" href="/another/path/assets/apple-touch-startup-image-640x920.png"><link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="/another/path/assets/apple-touch-startup-image-640x1096.png"><link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" href="/another/path/assets/apple-touch-startup-image-750x1294.png"><link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3)" href="/another/path/assets/apple-touch-startup-image-1182x2208.png"><link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3)" href="/another/path/assets/apple-touch-startup-image-1242x2148.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 1)" href="/another/path/assets/apple-touch-startup-image-748x1024.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" href="/another/path/assets/apple-touch-startup-image-768x1004.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)" href="/another/path/assets/apple-touch-startup-image-1496x2048.png"><link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" href="/another/path/assets/apple-touch-startup-image-1536x2008.png"><link rel="icon" type="image/png" sizes="228x228" href="/another/path/assets/coast-228x228.png"><meta name="msapplication-TileColor" content="#fff"><meta name="msapplication-TileImage" content="/another/path/assets/mstile-144x144.png"><meta name="msapplication-config" content="/another/path/assets/browserconfig.xml"><link rel="yandex-tableau-widget" href="/another/path/assets/yandex-browser-manifest.json"></head><body></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const test = require('ava'); | ||
const path = require('path'); | ||
const fs = require('fs-extra'); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const FaviconsWebpackPlugin = require('../'); | ||
|
||
const { logo, generate, mkdir, compare, expected } = require('./util'); | ||
|
||
test.beforeEach(async t => t.context.root = await mkdir()); | ||
|
||
test('should allow for overriding the output path of favicons', async t => { | ||
const dist = path.join(t.context.root, 'dist'); | ||
|
||
await generate({ | ||
context: t.context.root, | ||
output: { | ||
path: dist, | ||
publicPath: '/public/path', | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin(), | ||
new FaviconsWebpackPlugin({ logo, outputPath: 'test/path' }), | ||
], | ||
}); | ||
|
||
t.deepEqual(await compare(dist, path.resolve(expected, 'outputpathoption')), []); | ||
}); | ||
|
||
test.afterEach(t => fs.remove(t.context.root)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const test = require('ava'); | ||
const path = require('path'); | ||
const fs = require('fs-extra'); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const FaviconsWebpackPlugin = require('../'); | ||
|
||
const { logo, generate, mkdir, compare, expected } = require('./util'); | ||
|
||
test.beforeEach(async t => t.context.root = await mkdir()); | ||
|
||
test('should allow for overriding the publicPath option', async t => { | ||
const dist = path.join(t.context.root, 'dist'); | ||
|
||
await generate({ | ||
context: t.context.root, | ||
output: { | ||
path: dist, | ||
publicPath: '/public/path', | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin(), | ||
new FaviconsWebpackPlugin({ logo, publicPath: '/another/path' }), | ||
], | ||
}); | ||
|
||
t.deepEqual(await compare(dist, path.resolve(expected, 'publicpathoption')), []); | ||
}); | ||
|
||
test.afterEach(t => fs.remove(t.context.root)); |