From ccfea3714f3797cbd09ec39716a58ef439953b78 Mon Sep 17 00:00:00 2001 From: Bruno Dutra Date: Sun, 13 Jan 2019 10:36:29 +0100 Subject: [PATCH] feat: the generated [hash] now is based on the current favicon-webpack-plugin version --- package.json | 4 ++-- src/loader.js | 3 ++- .../custom/prefix/5026ef56/browserconfig.xml | 15 --------------- .../custom/prefix/5026ef56/manifest.webapp | 14 -------------- .../android-chrome-144x144.png | Bin .../android-chrome-192x192.png | Bin .../android-chrome-256x256.png | Bin .../android-chrome-36x36.png | Bin .../android-chrome-384x384.png | Bin .../android-chrome-48x48.png | Bin .../android-chrome-512x512.png | Bin .../android-chrome-72x72.png | Bin .../android-chrome-96x96.png | Bin .../apple-touch-icon-1024x1024.png | Bin .../apple-touch-icon-114x114.png | Bin .../apple-touch-icon-120x120.png | Bin .../apple-touch-icon-144x144.png | Bin .../apple-touch-icon-152x152.png | Bin .../apple-touch-icon-167x167.png | Bin .../apple-touch-icon-180x180.png | Bin .../apple-touch-icon-57x57.png | Bin .../apple-touch-icon-60x60.png | Bin .../apple-touch-icon-72x72.png | Bin .../apple-touch-icon-76x76.png | Bin .../apple-touch-icon-precomposed.png | Bin .../apple-touch-icon.png | Bin .../apple-touch-startup-image-1182x2208.png | Bin .../apple-touch-startup-image-1242x2148.png | Bin .../apple-touch-startup-image-1496x2048.png | Bin .../apple-touch-startup-image-1536x2008.png | Bin .../apple-touch-startup-image-320x460.png | Bin .../apple-touch-startup-image-640x1096.png | Bin .../apple-touch-startup-image-640x920.png | Bin .../apple-touch-startup-image-748x1024.png | Bin .../apple-touch-startup-image-750x1294.png | Bin .../apple-touch-startup-image-768x1004.png | Bin .../custom/prefix/8d09875a/browserconfig.xml | 15 +++++++++++++++ .../{5026ef56 => 8d09875a}/coast-228x228.png | Bin .../{5026ef56 => 8d09875a}/favicon-16x16.png | Bin .../{5026ef56 => 8d09875a}/favicon-32x32.png | Bin .../prefix/{5026ef56 => 8d09875a}/favicon.ico | Bin .../firefox_app_128x128.png | Bin .../firefox_app_512x512.png | Bin .../firefox_app_60x60.png | Bin .../{5026ef56 => 8d09875a}/manifest.json | 18 +++++++++--------- .../custom/prefix/8d09875a/manifest.webapp | 14 ++++++++++++++ .../{5026ef56 => 8d09875a}/mstile-144x144.png | Bin .../{5026ef56 => 8d09875a}/mstile-150x150.png | Bin .../{5026ef56 => 8d09875a}/mstile-310x150.png | Bin .../{5026ef56 => 8d09875a}/mstile-310x310.png | Bin .../{5026ef56 => 8d09875a}/mstile-70x70.png | Bin .../yandex-browser-50x50.png | Bin .../yandex-browser-manifest.json | 2 +- test/fixtures/expected/prefixed/index.html | 2 +- 54 files changed, 44 insertions(+), 43 deletions(-) delete mode 100644 test/fixtures/expected/prefixed/custom/prefix/5026ef56/browserconfig.xml delete mode 100644 test/fixtures/expected/prefixed/custom/prefix/5026ef56/manifest.webapp rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/android-chrome-144x144.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/android-chrome-192x192.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/android-chrome-256x256.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/android-chrome-36x36.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/android-chrome-384x384.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/android-chrome-48x48.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/android-chrome-512x512.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/android-chrome-72x72.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/android-chrome-96x96.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-1024x1024.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-114x114.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-120x120.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-144x144.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-152x152.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-167x167.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-180x180.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-57x57.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-60x60.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-72x72.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-76x76.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon-precomposed.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-icon.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-startup-image-1182x2208.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-startup-image-1242x2148.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-startup-image-1496x2048.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-startup-image-1536x2008.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-startup-image-320x460.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-startup-image-640x1096.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-startup-image-640x920.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-startup-image-748x1024.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-startup-image-750x1294.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/apple-touch-startup-image-768x1004.png (100%) create mode 100644 test/fixtures/expected/prefixed/custom/prefix/8d09875a/browserconfig.xml rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/coast-228x228.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/favicon-16x16.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/favicon-32x32.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/favicon.ico (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/firefox_app_128x128.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/firefox_app_512x512.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/firefox_app_60x60.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/manifest.json (59%) create mode 100644 test/fixtures/expected/prefixed/custom/prefix/8d09875a/manifest.webapp rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/mstile-144x144.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/mstile-150x150.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/mstile-310x150.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/mstile-310x310.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/mstile-70x70.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/yandex-browser-50x50.png (100%) rename test/fixtures/expected/prefixed/custom/prefix/{5026ef56 => 8d09875a}/yandex-browser-manifest.json (62%) diff --git a/package.json b/package.json index 45fef38b..7e126a33 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "dependencies": { "cache-loader": "^2.0.1", "camelcase": "^5.0.0", - "favicons": "^5.3.0", + "favicons": "5.3.0", "find-cache-dir": "^2.0.0", "find-root": "^1.1.0", "loader-utils": "^1.2.3", @@ -60,4 +60,4 @@ "peerDependencies": { "webpack": "^1.13.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" } -} +} \ No newline at end of file diff --git a/src/loader.js b/src/loader.js index 05b692f6..cc67c6df 100644 --- a/src/loader.js +++ b/src/loader.js @@ -3,6 +3,7 @@ const favicons = require('favicons'); const msgpack = require('msgpack-lite'); const { parseQuery, interpolateName } = require('loader-utils'); const { getContext } = require('./compat'); +const pkg = require('../package.json') const trailingSlash = (path) => (path.substr(-1) !== '/') ? path + '/' : path; @@ -15,7 +16,7 @@ module.exports = function (content) { const path = query.path && trailingSlash(query.path); const prefix = query.prefix && trailingSlash(interpolateName(this, query.prefix, { context: getContext(this), - content: msgpack.encode([content, query.options]), // hash must depend on logo + config + content: msgpack.encode([content, query.options, pkg.version]), // hash must depend on logo + config + version })); // Generate icons diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/browserconfig.xml b/test/fixtures/expected/prefixed/custom/prefix/5026ef56/browserconfig.xml deleted file mode 100644 index ff3da255..00000000 --- a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/browserconfig.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - #fff - - - - - - diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/manifest.webapp b/test/fixtures/expected/prefixed/custom/prefix/5026ef56/manifest.webapp deleted file mode 100644 index a448331c..00000000 --- a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/manifest.webapp +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": "1.0", - "name": null, - "description": null, - "icons": { - "60": "/custom/prefix/5026ef56/firefox_app_60x60.png", - "128": "/custom/prefix/5026ef56/firefox_app_128x128.png", - "512": "/custom/prefix/5026ef56/firefox_app_512x512.png" - }, - "developer": { - "name": null, - "url": null - } -} \ No newline at end of file diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-144x144.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-144x144.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-144x144.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-144x144.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-192x192.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-192x192.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-192x192.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-192x192.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-256x256.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-256x256.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-256x256.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-256x256.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-36x36.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-36x36.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-36x36.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-36x36.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-384x384.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-384x384.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-384x384.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-384x384.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-48x48.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-48x48.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-48x48.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-48x48.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-512x512.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-512x512.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-512x512.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-512x512.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-72x72.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-72x72.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-72x72.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-72x72.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-96x96.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-96x96.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/android-chrome-96x96.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/android-chrome-96x96.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-1024x1024.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-1024x1024.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-1024x1024.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-1024x1024.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-114x114.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-114x114.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-114x114.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-114x114.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-120x120.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-120x120.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-120x120.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-120x120.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-144x144.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-144x144.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-144x144.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-144x144.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-152x152.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-152x152.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-152x152.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-152x152.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-167x167.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-167x167.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-167x167.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-167x167.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-180x180.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-180x180.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-180x180.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-180x180.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-57x57.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-57x57.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-57x57.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-57x57.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-60x60.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-60x60.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-60x60.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-60x60.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-72x72.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-72x72.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-72x72.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-72x72.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-76x76.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-76x76.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-76x76.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-76x76.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-precomposed.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-precomposed.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon-precomposed.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon-precomposed.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-icon.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-icon.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-1182x2208.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-1182x2208.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-1182x2208.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-1182x2208.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-1242x2148.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-1242x2148.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-1242x2148.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-1242x2148.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-1496x2048.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-1496x2048.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-1496x2048.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-1496x2048.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-1536x2008.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-1536x2008.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-1536x2008.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-1536x2008.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-320x460.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-320x460.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-320x460.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-320x460.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-640x1096.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-640x1096.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-640x1096.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-640x1096.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-640x920.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-640x920.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-640x920.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-640x920.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-748x1024.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-748x1024.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-748x1024.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-748x1024.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-750x1294.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-750x1294.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-750x1294.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-750x1294.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-768x1004.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-768x1004.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/apple-touch-startup-image-768x1004.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/apple-touch-startup-image-768x1004.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/8d09875a/browserconfig.xml b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/browserconfig.xml new file mode 100644 index 00000000..5393fa24 --- /dev/null +++ b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/browserconfig.xml @@ -0,0 +1,15 @@ + + + + + + + + + #fff + + + + + + diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/coast-228x228.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/coast-228x228.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/coast-228x228.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/coast-228x228.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/favicon-16x16.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/favicon-16x16.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/favicon-16x16.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/favicon-16x16.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/favicon-32x32.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/favicon-32x32.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/favicon-32x32.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/favicon-32x32.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/favicon.ico b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/favicon.ico similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/favicon.ico rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/favicon.ico diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/firefox_app_128x128.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/firefox_app_128x128.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/firefox_app_128x128.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/firefox_app_128x128.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/firefox_app_512x512.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/firefox_app_512x512.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/firefox_app_512x512.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/firefox_app_512x512.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/firefox_app_60x60.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/firefox_app_60x60.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/firefox_app_60x60.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/firefox_app_60x60.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/manifest.json b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/manifest.json similarity index 59% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/manifest.json rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/manifest.json index 2c6bd505..ad303243 100644 --- a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/manifest.json +++ b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/manifest.json @@ -11,47 +11,47 @@ "theme_color": "#fff", "icons": [ { - "src": "/custom/prefix/5026ef56/android-chrome-36x36.png", + "src": "/custom/prefix/8d09875a/android-chrome-36x36.png", "sizes": "36x36", "type": "image/png" }, { - "src": "/custom/prefix/5026ef56/android-chrome-48x48.png", + "src": "/custom/prefix/8d09875a/android-chrome-48x48.png", "sizes": "48x48", "type": "image/png" }, { - "src": "/custom/prefix/5026ef56/android-chrome-72x72.png", + "src": "/custom/prefix/8d09875a/android-chrome-72x72.png", "sizes": "72x72", "type": "image/png" }, { - "src": "/custom/prefix/5026ef56/android-chrome-96x96.png", + "src": "/custom/prefix/8d09875a/android-chrome-96x96.png", "sizes": "96x96", "type": "image/png" }, { - "src": "/custom/prefix/5026ef56/android-chrome-144x144.png", + "src": "/custom/prefix/8d09875a/android-chrome-144x144.png", "sizes": "144x144", "type": "image/png" }, { - "src": "/custom/prefix/5026ef56/android-chrome-192x192.png", + "src": "/custom/prefix/8d09875a/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" }, { - "src": "/custom/prefix/5026ef56/android-chrome-256x256.png", + "src": "/custom/prefix/8d09875a/android-chrome-256x256.png", "sizes": "256x256", "type": "image/png" }, { - "src": "/custom/prefix/5026ef56/android-chrome-384x384.png", + "src": "/custom/prefix/8d09875a/android-chrome-384x384.png", "sizes": "384x384", "type": "image/png" }, { - "src": "/custom/prefix/5026ef56/android-chrome-512x512.png", + "src": "/custom/prefix/8d09875a/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" } diff --git a/test/fixtures/expected/prefixed/custom/prefix/8d09875a/manifest.webapp b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/manifest.webapp new file mode 100644 index 00000000..c5f668fa --- /dev/null +++ b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/manifest.webapp @@ -0,0 +1,14 @@ +{ + "version": "1.0", + "name": null, + "description": null, + "icons": { + "60": "/custom/prefix/8d09875a/firefox_app_60x60.png", + "128": "/custom/prefix/8d09875a/firefox_app_128x128.png", + "512": "/custom/prefix/8d09875a/firefox_app_512x512.png" + }, + "developer": { + "name": null, + "url": null + } +} \ No newline at end of file diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/mstile-144x144.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/mstile-144x144.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/mstile-144x144.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/mstile-144x144.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/mstile-150x150.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/mstile-150x150.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/mstile-150x150.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/mstile-150x150.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/mstile-310x150.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/mstile-310x150.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/mstile-310x150.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/mstile-310x150.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/mstile-310x310.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/mstile-310x310.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/mstile-310x310.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/mstile-310x310.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/mstile-70x70.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/mstile-70x70.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/mstile-70x70.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/mstile-70x70.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/yandex-browser-50x50.png b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/yandex-browser-50x50.png similarity index 100% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/yandex-browser-50x50.png rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/yandex-browser-50x50.png diff --git a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/yandex-browser-manifest.json b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/yandex-browser-manifest.json similarity index 62% rename from test/fixtures/expected/prefixed/custom/prefix/5026ef56/yandex-browser-manifest.json rename to test/fixtures/expected/prefixed/custom/prefix/8d09875a/yandex-browser-manifest.json index d20f306f..4971e5c8 100644 --- a/test/fixtures/expected/prefixed/custom/prefix/5026ef56/yandex-browser-manifest.json +++ b/test/fixtures/expected/prefixed/custom/prefix/8d09875a/yandex-browser-manifest.json @@ -2,7 +2,7 @@ "version": "1.0", "api_version": 1, "layout": { - "logo": "/custom/prefix/5026ef56/yandex-browser-50x50.png", + "logo": "/custom/prefix/8d09875a/yandex-browser-50x50.png", "color": "#fff", "show_title": true } diff --git a/test/fixtures/expected/prefixed/index.html b/test/fixtures/expected/prefixed/index.html index 7a49725f..1790f385 100644 --- a/test/fixtures/expected/prefixed/index.html +++ b/test/fixtures/expected/prefixed/index.html @@ -1 +1 @@ - +