diff --git a/README.md b/README.md index cb564fbe..09b9b7cc 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ In combination with [html-webpack-plugin](https://github.com/jantimon/html-webpa - + @@ -232,7 +232,7 @@ This behaviour can be adjusted by setting the favicons `mode` and `devMode` opti ### Custom manifests -The manifest options allows to overwrite values of the generated manifest.json with own values +The manifest options allows to overwrite values of the generated manifest.webmanifest with own values ```javascript const FaviconsWebpackPlugin = require('favicons-webpack-plugin') @@ -241,7 +241,7 @@ plugins: [ new FaviconsWebpackPlugin({ logo: './src/logo.png', mode: 'webapp', - manifest: './src/manifest.json' + manifest: './src/manifest.webmanifest' }) ] ``` diff --git a/example/custom-manifest/src/manifest.json b/example/custom-manifest/src/manifest.webmanifest similarity index 100% rename from example/custom-manifest/src/manifest.json rename to example/custom-manifest/src/manifest.webmanifest diff --git a/example/custom-manifest/webpack.config.js b/example/custom-manifest/webpack.config.js index 1566aaaa..1b12852b 100644 --- a/example/custom-manifest/webpack.config.js +++ b/example/custom-manifest/webpack.config.js @@ -22,7 +22,7 @@ module.exports = (env, args) => { }), new FaviconsWebpackPlugin({ logo: './src/favicon.png', - manifest: './src/manifest.json', + manifest: './src/manifest.webmanifest', mode: 'webapp' }), diff --git a/src/index.js b/src/index.js index 29a90171..db649973 100644 --- a/src/index.js +++ b/src/index.js @@ -182,7 +182,7 @@ class FaviconsWebpackPlugin { compilation.fileDependencies.add(logoMaskable); } - // Watch for changes to the base manifest.json + // Watch for changes to the base manifest.webmanifest if (typeof this.options.manifest === 'string') { compilation.fileDependencies.add(this.options.manifest); } @@ -439,9 +439,9 @@ class FaviconsWebpackPlugin { // If the manifest is not empty add it also to the light mode if (Object.keys(baseManifest).length > 0) { - tags.push(''); + tags.push(''); assets.push({ - name: path.join(outputPath, 'manifest.json'), + name: path.join(outputPath, 'manifest.webmanifest'), contents: new RawSource( JSON.stringify( mergeManifests(baseManifest, { @@ -507,7 +507,7 @@ class FaviconsWebpackPlugin { }); const modifiedFiles = files.map((file) => { - if (file.name.endsWith('manifest.json')) { + if (file.name.endsWith('manifest.webmanifest')) { const generatedManifest = JSON.parse(file.contents); return { @@ -600,7 +600,7 @@ function getResolvedPublicPath(logoContentHash, compilation, faviconOptions) { } /** - * Merge two manifest.json files + * Merge two manifest.webmanifest files * * @param {{[key: string]: any}} manifest1 * @param {{[key: string]: any}} manifest2 diff --git a/src/options.d.ts b/src/options.d.ts index 20a781fd..bfc1f9d7 100644 --- a/src/options.d.ts +++ b/src/options.d.ts @@ -55,7 +55,7 @@ export interface FaviconWebpackPlugionOptions { * which are websites that can be installed to a device’s homescreen without an app store. * @see https://developer.mozilla.org/en-US/docs/Web/Manifest * - * The manifest option allows to provide a filepath to a base manifest.json file or a base manifest configuration + * The manifest option allows to provide a filepath to a base manifest.webmanifest file or a base manifest configuration */ manifest?: string | { [key: string]: any } /** diff --git a/test/_util.mjs b/test/_util.mjs index c47668f8..7f1099b0 100644 --- a/test/_util.mjs +++ b/test/_util.mjs @@ -75,7 +75,7 @@ export const snapshotCompilationAssets = (t, compilerStats) => { assetNames.map((assetName) => replaceHash(replaceBackSlashes(assetName))) ); const htmlFiles = /\.html?$/; - const textFiles = /\.(json|html?|webapp|xml)$/; + const textFiles = /\.(json|html?|webapp|xml|webmanifest)$/; // CSS and JS files are not touched by this plugin // therefore those files are excluded from snapshots const ignoredFiles = /\.(js|css)$/; diff --git a/test/fixtures/manifest.json b/test/fixtures/manifest.webmanifest similarity index 100% rename from test/fixtures/manifest.json rename to test/fixtures/manifest.webmanifest diff --git a/test/manifest.file.test.mjs b/test/manifest.file.test.mjs index f3263016..c495c7c3 100644 --- a/test/manifest.file.test.mjs +++ b/test/manifest.file.test.mjs @@ -21,7 +21,7 @@ test('should generate a result with custom manifest values', async (t) => { plugins: [ new FaviconsWebpackPlugin({ logo, - manifest: path.resolve(fixtures, 'manifest.json'), + manifest: path.resolve(fixtures, 'manifest.webmanifest'), }), ], }); diff --git a/test/manifest.light.file.test.mjs b/test/manifest.light.file.test.mjs index 28152b5b..d25c2f5c 100644 --- a/test/manifest.light.file.test.mjs +++ b/test/manifest.light.file.test.mjs @@ -22,7 +22,7 @@ test('should generate a result with custom manifest values', async (t) => { new FaviconsWebpackPlugin({ logo, mode: 'light', - manifest: path.resolve(fixtures, 'manifest.json'), + manifest: path.resolve(fixtures, 'manifest.webmanifest'), }), ], }); diff --git a/test/snapshots/default.test.mjs.md b/test/snapshots/default.test.mjs.md index c51b88f9..497924b9 100644 --- a/test/snapshots/default.test.mjs.md +++ b/test/snapshots/default.test.mjs.md @@ -301,7 +301,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', diff --git a/test/snapshots/default.test.mjs.snap b/test/snapshots/default.test.mjs.snap index cba04a31..9554be56 100644 Binary files a/test/snapshots/default.test.mjs.snap and b/test/snapshots/default.test.mjs.snap differ diff --git a/test/snapshots/html.false.test.mjs.md b/test/snapshots/html.false.test.mjs.md index 53dea2a8..f7719eab 100644 --- a/test/snapshots/html.false.test.mjs.md +++ b/test/snapshots/html.false.test.mjs.md @@ -302,7 +302,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', @@ -651,7 +715,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', @@ -1000,7 +1128,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', diff --git a/test/snapshots/html.false.test.mjs.snap b/test/snapshots/html.false.test.mjs.snap index 51349721..7064de92 100644 Binary files a/test/snapshots/html.false.test.mjs.snap and b/test/snapshots/html.false.test.mjs.snap differ diff --git a/test/snapshots/html.multiple.test.mjs.md b/test/snapshots/html.multiple.test.mjs.md index 9b5348a4..58483c0d 100644 --- a/test/snapshots/html.multiple.test.mjs.md +++ b/test/snapshots/html.multiple.test.mjs.md @@ -561,7 +561,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', diff --git a/test/snapshots/html.multiple.test.mjs.snap b/test/snapshots/html.multiple.test.mjs.snap index d37ef5cf..6ae4f024 100644 Binary files a/test/snapshots/html.multiple.test.mjs.snap and b/test/snapshots/html.multiple.test.mjs.snap differ diff --git a/test/snapshots/html.true.test.mjs.md b/test/snapshots/html.true.test.mjs.md index 42fc7286..bde9ef86 100644 --- a/test/snapshots/html.true.test.mjs.md +++ b/test/snapshots/html.true.test.mjs.md @@ -302,7 +302,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', @@ -897,7 +961,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', diff --git a/test/snapshots/html.true.test.mjs.snap b/test/snapshots/html.true.test.mjs.snap index 7a39a94f..292f82eb 100644 Binary files a/test/snapshots/html.true.test.mjs.snap and b/test/snapshots/html.true.test.mjs.snap differ diff --git a/test/snapshots/logo-array.test.mjs.md b/test/snapshots/logo-array.test.mjs.md index 2c0f0f22..a8898050 100644 --- a/test/snapshots/logo-array.test.mjs.md +++ b/test/snapshots/logo-array.test.mjs.md @@ -301,7 +301,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', diff --git a/test/snapshots/logo-array.test.mjs.snap b/test/snapshots/logo-array.test.mjs.snap index bcad7b74..9b0ec39f 100644 Binary files a/test/snapshots/logo-array.test.mjs.snap and b/test/snapshots/logo-array.test.mjs.snap differ diff --git a/test/snapshots/logoMaskable.test.mjs.md b/test/snapshots/logoMaskable.test.mjs.md index f3f58250..fe9461a0 100644 --- a/test/snapshots/logoMaskable.test.mjs.md +++ b/test/snapshots/logoMaskable.test.mjs.md @@ -346,7 +346,125 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-maskable-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "maskable"␊ + },␊ + {␊ + "src": "android-chrome-maskable-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "maskable"␊ + },␊ + {␊ + "src": "android-chrome-maskable-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "maskable"␊ + },␊ + {␊ + "src": "android-chrome-maskable-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "maskable"␊ + },␊ + {␊ + "src": "android-chrome-maskable-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "maskable"␊ + },␊ + {␊ + "src": "android-chrome-maskable-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "maskable"␊ + },␊ + {␊ + "src": "android-chrome-maskable-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "maskable"␊ + },␊ + {␊ + "src": "android-chrome-maskable-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "maskable"␊ + },␊ + {␊ + "src": "android-chrome-maskable-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "maskable"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', diff --git a/test/snapshots/logoMaskable.test.mjs.snap b/test/snapshots/logoMaskable.test.mjs.snap index b91f6e2f..7dafe585 100644 Binary files a/test/snapshots/logoMaskable.test.mjs.snap and b/test/snapshots/logoMaskable.test.mjs.snap differ diff --git a/test/snapshots/manifest.file.test.mjs.md b/test/snapshots/manifest.file.test.mjs.md index 273cf58d..ab86cb3e 100644 --- a/test/snapshots/manifest.file.test.mjs.md +++ b/test/snapshots/manifest.file.test.mjs.md @@ -301,7 +301,73 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en",␊ + "display": "standalone",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ],␊ + "name": "FaviconsDemo",␊ + "short_name": "FaviconsDemo",␊ + "description": "A manifest used for unit-testing"␊ + }`, }, { assetName: 'assets/mstile-144x144.png', @@ -335,15 +401,7 @@ Generated by [AVA](https://avajs.dev). "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ - },␊ - "name": "FaviconsDemo",␊ - "short_name": "FaviconsDemo",␊ - "description": "A manifest used for unit-testing",␊ - "dir": "auto",␊ - "lang": "en",␊ - "display": "standalone",␊ - "background_color": "#fff",␊ - "theme_color": "#fff"␊ + }␊ }`, }, ] diff --git a/test/snapshots/manifest.file.test.mjs.snap b/test/snapshots/manifest.file.test.mjs.snap index 3ce8ae34..c22ed862 100644 Binary files a/test/snapshots/manifest.file.test.mjs.snap and b/test/snapshots/manifest.file.test.mjs.snap differ diff --git a/test/snapshots/manifest.light.file.test.mjs.md b/test/snapshots/manifest.light.file.test.mjs.md index f848c0ff..5613621a 100644 --- a/test/snapshots/manifest.light.file.test.mjs.md +++ b/test/snapshots/manifest.light.file.test.mjs.md @@ -10,7 +10,7 @@ Generated by [AVA](https://avajs.dev). [ 'assets/favicon.png', - 'assets/manifest.json', + 'assets/manifest.webmanifest', 'main.js', ] @@ -22,7 +22,7 @@ Generated by [AVA](https://avajs.dev). content: 'png 874x989', }, { - assetName: 'assets/manifest.json', + assetName: 'assets/manifest.webmanifest', content: `{␊ "name": "FaviconsDemo",␊ "short_name": "FaviconsDemo",␊ diff --git a/test/snapshots/manifest.light.file.test.mjs.snap b/test/snapshots/manifest.light.file.test.mjs.snap index 926e607b..0d44b45f 100644 Binary files a/test/snapshots/manifest.light.file.test.mjs.snap and b/test/snapshots/manifest.light.file.test.mjs.snap differ diff --git a/test/snapshots/manifest.light.test.mjs.md b/test/snapshots/manifest.light.test.mjs.md index 785b831e..bfba0b1f 100644 --- a/test/snapshots/manifest.light.test.mjs.md +++ b/test/snapshots/manifest.light.test.mjs.md @@ -10,7 +10,7 @@ Generated by [AVA](https://avajs.dev). [ 'assets/favicon.png', - 'assets/manifest.json', + 'assets/manifest.webmanifest', 'main.js', ] @@ -22,7 +22,7 @@ Generated by [AVA](https://avajs.dev). content: 'png 874x989', }, { - assetName: 'assets/manifest.json', + assetName: 'assets/manifest.webmanifest', content: `{␊ "name": "FaviconsDemo",␊ "short_name": "FaviconsDemo",␊ diff --git a/test/snapshots/manifest.light.test.mjs.snap b/test/snapshots/manifest.light.test.mjs.snap index c83011e5..dc90f76b 100644 Binary files a/test/snapshots/manifest.light.test.mjs.snap and b/test/snapshots/manifest.light.test.mjs.snap differ diff --git a/test/snapshots/manifest.test.mjs.md b/test/snapshots/manifest.test.mjs.md index c69dd854..ff8c504f 100644 --- a/test/snapshots/manifest.test.mjs.md +++ b/test/snapshots/manifest.test.mjs.md @@ -301,7 +301,73 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en",␊ + "display": "standalone",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ],␊ + "name": "FaviconsDemo",␊ + "short_name": "FaviconsDemo",␊ + "description": "Just a demo"␊ + }`, }, { assetName: 'assets/mstile-144x144.png', @@ -335,15 +401,7 @@ Generated by [AVA](https://avajs.dev). "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ - },␊ - "name": "FaviconsDemo",␊ - "short_name": "FaviconsDemo",␊ - "description": "Just a demo",␊ - "dir": "auto",␊ - "lang": "en",␊ - "display": "standalone",␊ - "background_color": "#fff",␊ - "theme_color": "#fff"␊ + }␊ }`, }, ] diff --git a/test/snapshots/manifest.test.mjs.snap b/test/snapshots/manifest.test.mjs.snap index c5321b2a..2701985f 100644 Binary files a/test/snapshots/manifest.test.mjs.snap and b/test/snapshots/manifest.test.mjs.snap differ diff --git a/test/snapshots/outputpathoption.test.mjs.md b/test/snapshots/outputpathoption.test.mjs.md index 56b402f7..4b9ab0f9 100644 --- a/test/snapshots/outputpathoption.test.mjs.md +++ b/test/snapshots/outputpathoption.test.mjs.md @@ -560,7 +560,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'test/path/manifest.webmanifest', - content: 'binary test/path/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'test/path/mstile-144x144.png', diff --git a/test/snapshots/outputpathoption.test.mjs.snap b/test/snapshots/outputpathoption.test.mjs.snap index 39218d8c..4ecd7719 100644 Binary files a/test/snapshots/outputpathoption.test.mjs.snap and b/test/snapshots/outputpathoption.test.mjs.snap differ diff --git a/test/snapshots/prefixed.test.mjs.md b/test/snapshots/prefixed.test.mjs.md index 96584aef..239309f0 100644 --- a/test/snapshots/prefixed.test.mjs.md +++ b/test/snapshots/prefixed.test.mjs.md @@ -302,7 +302,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'custom/prefix/__replaced_hash_8/manifest.webmanifest', - content: 'binary custom/prefix/4f0344c9/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'custom/prefix/__replaced_hash_8/mstile-144x144.png', @@ -932,7 +996,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'custom/prefix/__replaced_hash_8/manifest.webmanifest', - content: 'binary custom/prefix/4f0344c9/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'custom/prefix/__replaced_hash_8/mstile-144x144.png', diff --git a/test/snapshots/prefixed.test.mjs.snap b/test/snapshots/prefixed.test.mjs.snap index 22ffd3bc..78c70a54 100644 Binary files a/test/snapshots/prefixed.test.mjs.snap and b/test/snapshots/prefixed.test.mjs.snap differ diff --git a/test/snapshots/publicpath.test.mjs.md b/test/snapshots/publicpath.test.mjs.md index 02c921c1..6675b5ad 100644 --- a/test/snapshots/publicpath.test.mjs.md +++ b/test/snapshots/publicpath.test.mjs.md @@ -302,7 +302,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', @@ -897,7 +961,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', @@ -1492,7 +1620,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', diff --git a/test/snapshots/publicpath.test.mjs.snap b/test/snapshots/publicpath.test.mjs.snap index 97a8e53e..359322e2 100644 Binary files a/test/snapshots/publicpath.test.mjs.snap and b/test/snapshots/publicpath.test.mjs.snap differ diff --git a/test/snapshots/publicpathoption.test.mjs.md b/test/snapshots/publicpathoption.test.mjs.md index 2d79d4ca..688b517f 100644 --- a/test/snapshots/publicpathoption.test.mjs.md +++ b/test/snapshots/publicpathoption.test.mjs.md @@ -302,7 +302,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'assets/manifest.webmanifest', - content: 'binary assets/manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'assets/mstile-144x144.png', diff --git a/test/snapshots/publicpathoption.test.mjs.snap b/test/snapshots/publicpathoption.test.mjs.snap index 3aecb2d7..389f56a8 100644 Binary files a/test/snapshots/publicpathoption.test.mjs.snap and b/test/snapshots/publicpathoption.test.mjs.snap differ diff --git a/test/snapshots/unprefixed.test.mjs.md b/test/snapshots/unprefixed.test.mjs.md index 902fae1f..55674f84 100644 --- a/test/snapshots/unprefixed.test.mjs.md +++ b/test/snapshots/unprefixed.test.mjs.md @@ -560,7 +560,71 @@ Generated by [AVA](https://avajs.dev). }, { assetName: 'manifest.webmanifest', - content: 'binary manifest.webmanifest', + content: `{␊ + "dir": "auto",␊ + "lang": "en-US",␊ + "display": "standalone",␊ + "orientation": "any",␊ + "start_url": "/?homescreen=1",␊ + "background_color": "#fff",␊ + "theme_color": "#fff",␊ + "icons": [␊ + {␊ + "src": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png",␊ + "purpose": "any"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png",␊ + "purpose": "any"␊ + }␊ + ]␊ + }`, }, { assetName: 'mstile-144x144.png', diff --git a/test/snapshots/unprefixed.test.mjs.snap b/test/snapshots/unprefixed.test.mjs.snap index 11acbd72..aa040c58 100644 Binary files a/test/snapshots/unprefixed.test.mjs.snap and b/test/snapshots/unprefixed.test.mjs.snap differ