From 7293186bc6887352a3d31c80f4671c10734a44fb Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Wed, 20 Jan 2021 21:33:18 +0100 Subject: [PATCH] feat: add support for webpack 5 publicPath 'auto' and relative favicons --- example/basic/webpack.config.js | 3 +- package-lock.json | 47 +- package.json | 8 +- src/cache.js | 51 +- src/hash.js | 12 +- src/index.js | 94 +- src/options.d.ts | 6 + test/light.test.js | 6 +- test/prefixed.test.js | 20 +- test/publicpath.test.js | 37 +- test/publicpathLight.test.js | 60 + test/snapshots/default.test.js.md | 34 +- test/snapshots/default.test.js.snap | Bin 3269 -> 3257 bytes test/snapshots/html.false.test.js.md | 102 +- test/snapshots/html.false.test.js.snap | Bin 3874 -> 3856 bytes test/snapshots/html.multiple.test.js.md | 118 +- test/snapshots/html.multiple.test.js.snap | Bin 4173 -> 4177 bytes test/snapshots/html.true.test.js.md | 236 ++-- test/snapshots/html.true.test.js.snap | Bin 4840 -> 4842 bytes test/snapshots/outputpathoption.test.js.md | 34 +- test/snapshots/outputpathoption.test.js.snap | Bin 4186 -> 4169 bytes test/snapshots/prefixed.test.js.md | 68 +- test/snapshots/prefixed.test.js.snap | Bin 4910 -> 4879 bytes test/snapshots/publicpath.test.js.md | 1262 +++++++++++++++++- test/snapshots/publicpath.test.js.snap | Bin 4129 -> 5274 bytes test/snapshots/publicpathLight.test.js.md | 107 ++ test/snapshots/publicpathLight.test.js.snap | Bin 0 -> 497 bytes test/snapshots/publicpathoption.test.js.md | 34 +- test/snapshots/publicpathoption.test.js.snap | Bin 4136 -> 4119 bytes test/snapshots/unprefixed.test.js.md | 34 +- test/snapshots/unprefixed.test.js.snap | Bin 4061 -> 4067 bytes test/unprefixed.test.js | 3 +- test/util.js | 4 +- test/zero-config.test.js | 3 +- 34 files changed, 1941 insertions(+), 442 deletions(-) create mode 100644 test/publicpathLight.test.js create mode 100644 test/snapshots/publicpathLight.test.js.md create mode 100644 test/snapshots/publicpathLight.test.js.snap diff --git a/example/basic/webpack.config.js b/example/basic/webpack.config.js index b4709f85..743b551d 100644 --- a/example/basic/webpack.config.js +++ b/example/basic/webpack.config.js @@ -10,8 +10,7 @@ module.exports = (env, args) => { entry: './src/app.js', output: { path: resolve(__dirname, 'public'), - publicPath: '/', - filename: 'app.js' + filename: 'app.js', }, plugins: [ new HtmlWebpackPlugin({ diff --git a/package-lock.json b/package-lock.json index daaf5f71..5464e7a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "favicons-webpack-plugin", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.7", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2494,9 +2494,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001176", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001176.tgz", - "integrity": "sha512-VWdkYmqdkDLRe0lvfJlZQ43rnjKqIGKHWhWWRbkqMsJIUaYDNf/K/sdZZcVO6YKQklubokdkJY+ujArsuJ5cag==", + "version": "1.0.30001178", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001178.tgz", + "integrity": "sha512-VtdZLC0vsXykKni8Uztx45xynytOi71Ufx9T8kHptSw9AL4dpqailUJJHavttuzUe1KYuBYtChiWv+BAb7mPmQ==", "dev": true }, "caseless": { @@ -4907,9 +4907,9 @@ "dev": true }, "electron-to-chromium": { - "version": "1.3.637", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.637.tgz", - "integrity": "sha512-924WXYMYquYybc+7pNApGlhY2RWg3MY3he4BrZ5BUmM2n1MGBsrS+PZxrlo6UAsWuNl4NE66fqFdwsWkBUGgkA==", + "version": "1.3.642", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.642.tgz", + "integrity": "sha512-cev+jOrz/Zm1i+Yh334Hed6lQVOkkemk2wRozfMF4MtTR7pxf3r3L5Rbd7uX1zMcEqVJ7alJBnJL7+JffkC6FQ==", "dev": true }, "emittery": { @@ -4955,9 +4955,9 @@ } }, "enhanced-resolve": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.6.0.tgz", - "integrity": "sha512-C3GGDfFZmqUa21o10YRKbZN60DPl0HyXKXxoEnQMWso9u7KMU23L7CBHfr/rVxORddY/8YQZaU2MZ1ewTS8Pcw==", + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.7.0.tgz", + "integrity": "sha512-6njwt/NsZFUKhM6j9U8hzVyD4E4r0x7NQzhTCbcWOJ0IQjNSAoalWmb0AE51Wn+fwan5qVESWi7t2ToBxs9vrw==", "dev": true, "requires": { "graceful-fs": "^4.2.4", @@ -5028,6 +5028,12 @@ "string.prototype.trimstart": "^1.0.1" } }, + "es-module-lexer": { + "version": "0.3.26", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.3.26.tgz", + "integrity": "sha512-Va0Q/xqtrss45hWzP8CZJwzGSZJjDM5/MJRE3IXXnUCcVLElR9BRaE9F62BopysASyc4nM3uwhSW7FFB9nlWAA==", + "dev": true + }, "es-to-primitive": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", @@ -7429,9 +7435,9 @@ } }, "html-webpack-plugin": { - "version": "5.0.0-beta.4", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.0.0-beta.4.tgz", - "integrity": "sha512-4CWq246BVHfS2l8Ni68q/oWquwJuaHs5s2Z+yVCmKNWadxS28RAqZo98hMtpnTLwhbhIg04psduDMcUr9JJpXg==", + "version": "5.0.0-beta.6", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.0.0-beta.6.tgz", + "integrity": "sha512-wjdhOnJlo5c8uN3OahRm2eaLKL8gEQ4ZNOkwQc8BStyudpFLTsg28m6wbf00keXiRPesk2Pad9CYeKpxbffApg==", "dev": true, "optional": true, "requires": { @@ -9285,9 +9291,9 @@ } }, "node-releases": { - "version": "1.1.69", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.69.tgz", - "integrity": "sha512-DGIjo79VDEyAnRlfSqYTsy+yoHd2IOjJiKUozD2MV2D85Vso6Bug56mb9tT/fY5Urt0iqk01H7x+llAruDR2zA==", + "version": "1.1.70", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.70.tgz", + "integrity": "sha512-Slf2s69+2/uAD79pVVQo8uSiC34+g8GWY8UH2Qtqv34ZfhYrxpYpfzs9Js9d6O0mbDmALuxaTlplnBTnSELcrw==", "dev": true }, "noop-logger": { @@ -12805,9 +12811,9 @@ } }, "webpack": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.13.0.tgz", - "integrity": "sha512-NPhMEtfhSVegp1FNPkCM1MPygDm0GHwpreG10dh//0Gr0epfB0br9nlgEfxSghxJqrQ7j9XzgO91CGGLWZiHeA==", + "version": "5.16.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.16.0.tgz", + "integrity": "sha512-QOkctcjYfEGxcYg4AzPJafyAQ7ANc266/URkX881uFA7b2k31E0Dmpy1ExfppHOTp1kHDTsRh9sXojVUvgPF0g==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.0", @@ -12818,7 +12824,8 @@ "acorn": "^8.0.4", "browserslist": "^4.14.5", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.6.0", + "enhanced-resolve": "^5.7.0", + "es-module-lexer": "^0.3.26", "eslint-scope": "^5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", diff --git a/package.json b/package.json index df0598c4..18424909 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "favicons-webpack-plugin", - "version": "5.0.0-alpha.6", + "version": "5.0.0-alpha.7", "description": "Let webpack generate all your favicons and icons for you", "main": "src/index.js", "files": [ @@ -53,13 +53,13 @@ "favicons": "^6.2.0", "fs-extra": "^8.1.0", "get-folder-size": "2.0.1", - "html-webpack-plugin": "^5.0.0-beta.4", + "html-webpack-plugin": "^5.0.0-beta.6", "image-size": "0.8.3", "nyc": "^15.0.0", "prettier": "1.19.1", "standard-version": "8.0.2", "typescript": "3.7.4", - "webpack": "^5.13.0", + "webpack": "^5.16.0", "webpack-cli": "4.3.1", "webpack-dev-server": "3.11.1", "webpack-merge": "^4.2.2" @@ -79,7 +79,7 @@ "favicons": ">= 6.2.0" }, "optionalDependencies": { - "html-webpack-plugin": ">=5.0.0 || ^5.0.0-beta.3" + "html-webpack-plugin": ">=5.0.0 || ^5.0.0-beta.6" }, "config": { "commitizen": { diff --git a/src/cache.js b/src/cache.js index 2ae9cdc3..a3a782e2 100644 --- a/src/cache.js +++ b/src/cache.js @@ -1,11 +1,12 @@ -/// @ts-check +// / @ts-check // Import types /** @typedef {ReturnType} WebpackCacheFacade */ /** @typedef {import("webpack").Compilation} WebpackCompilation */ -/** @typedef {any} Snapshot */ +/** @typedef {Parameters[0]} Snapshot */ -/** @typedef {{ +/** @typedef {{, + publicPath: string, tags: string[], assets: Array<{ name: string, @@ -22,7 +23,7 @@ const { /** @type {WeakMap>} */ const snapshots = new WeakMap(); -/** @type {WeakMap>} */ +/** @type {WeakMap, Promise>} */ const faviconCache = new WeakMap(); /** @@ -61,6 +62,7 @@ function runCached( // and try again if (!isValid) { faviconCache.delete(latestSnapShot); + return runCached( faviconOptions, context, @@ -69,6 +71,7 @@ function runCached( generator ); } + // If the cache is valid return the result directly from cache return cachedFavicons; }); @@ -76,17 +79,15 @@ function runCached( // Store a snapshot of the filesystem // to find out if the logo was changed - snapshots.set( - pluginInstance, - createSnapshot( - { - fileDependencies: [logo], - contextDependencies: [], - missingDependencies: [] - }, - compilation - ) + const newSnapShot = createSnapshot( + { + fileDependencies: [logo], + contextDependencies: [], + missingDependencies: [] + }, + compilation ); + snapshots.set(pluginInstance, newSnapShot); // Start generating the favicons const faviconsGenerationsPromise = runWithFileCache( @@ -97,10 +98,7 @@ function runCached( ); // Store the promise of the favicon compilation in cache - faviconCache.set( - snapshots.get(pluginInstance) || latestSnapShot, - faviconsGenerationsPromise - ); + faviconCache.set(newSnapShot, faviconsGenerationsPromise); return faviconsGenerationsPromise; } @@ -120,8 +118,8 @@ function createSnapshot(fileDependencies, mainCompilation) { fileDependencies.missingDependencies, {}, (err, snapshot) => { - if (err) { - return reject(err); + if (err || !snapshot) { + return reject(err || new Error('Could not create Snapshot')); } resolve(snapshot); } @@ -165,7 +163,10 @@ async function runWithFileCache( ) ); - const compilationOutputPath = compilation.outputOptions.path || ''; + const compilationOutputPath = + compilation.outputOptions.path === 'auto' + ? '' + : compilation.outputOptions.path || ''; /** * the relative output path to the folder where the favicon files should be generated to * it might include tokens like [fullhash] or [contenthash] @@ -184,16 +185,19 @@ async function runWithFileCache( relativeOutputPath, logoContentHash ); + const webpackPublicPath = + compilation.outputOptions.publicPath === 'auto' + ? '' + : compilation.outputOptions.publicPath; const resolvedPublicPath = replaceContentHash( compilation, resolvePublicPath( compilation, - faviconOptions.publicPath || compilation.outputOptions.publicPath, + faviconOptions.publicPath || webpackPublicPath, faviconOptions.prefix ), logoContentHash ); - return generator(logoSource, compilation, resolvedPublicPath, outputPath); }; @@ -211,6 +215,7 @@ async function runWithFileCache( // Recompile filesystem cache if the logo source changes: logoContentHash ].join('\n'); + // Use the webpack cache which supports filesystem caching to improve build speed // See also https://webpack.js.org/configuration/other-options/#cache // Create one cache for every output target diff --git a/src/hash.js b/src/hash.js index 9324f8ff..74bf28a3 100644 --- a/src/hash.js +++ b/src/hash.js @@ -1,4 +1,4 @@ -/// @ts-check +// / @ts-check // Import types /** @typedef {import("webpack").Compilation} WebpackCompilation */ @@ -16,16 +16,14 @@ const url = require('url'); function resolvePublicPath(compilation, publicPath, assetPath) { const publicPathString = publicPath && typeof publicPath === 'function' - ? compilation.getAssetPath( - compilation.outputOptions.publicPath || 'auto', - { hash: compilation.hash } - ) + ? compilation.getAssetPath(publicPath, { hash: compilation.hash }) : publicPath; const fullAssetPath = url.resolve( - appendSlash(publicPathString || 'auto'), + appendSlash(publicPathString || ''), assetPath ); + return fullAssetPath; } @@ -52,7 +50,7 @@ function replaceContentHash(compilation, assetPath, hash) { * @param {string} url */ function appendSlash(url) { - return url && url.length && url.substr(-1, 1) !== '/' ? url + '/' : url; + return url && url.length && url.substr(-1, 1) !== '/' ? `${url}/` : url; } /** diff --git a/src/index.js b/src/index.js index 14088226..e08b584b 100644 --- a/src/index.js +++ b/src/index.js @@ -5,6 +5,7 @@ const parse5 = require('parse5'); const path = require('path'); const { runCached } = require('./cache'); const Oracle = require('./oracle'); +const url = require('url'); /** @type {WeakMap}>>} */ const faviconCompilations = new WeakMap(); @@ -107,11 +108,12 @@ class FaviconsWebpackPlugin { if (HtmlWebpackPlugin && this.options.inject) { if (!verifyHtmlWebpackPluginVersion(HtmlWebpackPlugin)) { compilation.errors.push( - new Error( + new compiler.webpack.WebpackError( `${'FaviconsWebpackPlugin - This FaviconsWebpackPlugin version is not compatible with your current HtmlWebpackPlugin version.\n' + 'Please upgrade to HtmlWebpackPlugin >= 5 OR downgrade to FaviconsWebpackPlugin 2.x\n'}${getHtmlWebpackPluginVersion()}` ) ); + return; } HtmlWebpackPlugin.getHooks(compilation).alterAssetTags.tapAsync( @@ -132,18 +134,60 @@ class FaviconsWebpackPlugin { faviconCompilation .then(faviconCompilation => { + // faviconCompilation.publicPath and htmlPluginData.publicPath can be: + // absolute: http://somewhere.com/app1/ + // absolute: /demo/app1/ + // relative: my/app/ + const publicPathFromHtml = url.resolve( + htmlPluginData.publicPath, + faviconCompilation.publicPath + ); + + // Prefix links to icons + const pathReplacer = + !this.options.favicons.path || + this.getCurrentCompilationMode(compiler) === 'light' + ? /** @param {string} url */ url => + typeof url === 'string' + ? publicPathFromHtml + url + : url + : /** @param {string} url */ url => url; + htmlPluginData.assetTags.meta.push( ...faviconCompilation.tags .map(tag => parse5.parseFragment(tag).childNodes[0]) - .map(({ tagName, attrs }) => ({ - tagName, - voidTag: true, - attributes: attrs.reduce( - (obj, { name, value }) => - Object.assign(obj, { [name]: value }), - {} - ) - })) + .map(({ tagName, attrs }) => { + const htmlTag = { + tagName, + voidTag: true, + meta: { plugin: 'favicons-webpack-plugin' }, + attributes: attrs.reduce( + (obj, { name, value }) => + Object.assign(obj, { [name]: value }), + {} + ) + }; + // Prefix link tags + if (typeof htmlTag.attributes.href === 'string') { + htmlTag.attributes.href = pathReplacer( + htmlTag.attributes.href + ); + } + // Prefix meta tags + if ( + htmlTag.tagName === 'meta' && + [ + 'msapplication-TileImage', + 'msapplication-config' + ].includes(htmlTag.attributes.name) + ) { + htmlTag.attributes.content = pathReplacer( + htmlTag.attributes.content + ); + } + + return htmlTag; + }) ); htmlWebpackPluginCallback(null, htmlPluginData); @@ -207,6 +251,7 @@ class FaviconsWebpackPlugin { 'favicons-webpack-plugin - generate only a single favicon for fast compilation time in development mode. This behaviour can be changed by setting the favicon mode option.' ); } + return this.generateFaviconsLight( logoSource, compilation, @@ -241,18 +286,18 @@ class FaviconsWebpackPlugin { outputPath ) { const faviconExt = path.extname(this.options.logo); - const faviconName = '/favicon' + faviconExt; + const faviconName = `favicon${faviconExt}`; const RawSource = compilation.compiler.webpack.sources.RawSource; + return { + publicPath: resolvedPublicPath, assets: [ { name: path.join(outputPath, faviconName), contents: new RawSource(logoSource, false) } ], - tags: [ - `` - ] + tags: [``] }; } @@ -275,17 +320,19 @@ class FaviconsWebpackPlugin { const RawSource = compilation.compiler.webpack.sources.RawSource; const favicons = loadFaviconsLibrary(); // Generate favicons using the npm favicons library - const { html: tags, images, files } = await favicons( - logoSource, - Object.assign({}, this.options.favicons, { - path: resolvedPublicPath - }) - ); + const { html: tags, images, files } = await favicons(logoSource, { + // Generate all assets relative to the root directory + // to allow relative manifests and to set the final public path + // once it has been provided by the html-webpack-plugin + path: '', + ...this.options.favicons + }); const assets = [...images, ...files].map(({ name, contents }) => ({ name: outputPath ? path.join(outputPath, name) : name, contents: new RawSource(contents, false) })); - return { assets, tags }; + + return { assets, tags, publicPath: resolvedPublicPath }; } /** @@ -336,8 +383,9 @@ function loadFaviconsLibrary() { return require('favicons'); } catch (e) { throw new Error( - 'Could not find the npm peerDependency "favicons".\nPlease run:\nnpm i favicons\n - or -\nyarn add favicons\n\n' + - String(e) + `Could not find the npm peerDependency "favicons".\nPlease run:\nnpm i favicons\n - or -\nyarn add favicons\n\n${String( + e + )}` ); } } diff --git a/src/options.d.ts b/src/options.d.ts index ce8096fc..c351818e 100644 --- a/src/options.d.ts +++ b/src/options.d.ts @@ -48,6 +48,12 @@ export interface FaviconWebpackPlugionOptions { * by default this mode is used for production */ devMode?: 'light' | 'webapp', + /** + * Web app manifests are part of a collection of web technologies called progressive web apps (PWAs), + * 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 + */ + manifest?: string | (() => void) /** * Prefix path for generated assets */ diff --git a/test/light.test.js b/test/light.test.js index 5d96c388..b2076d74 100644 --- a/test/light.test.js +++ b/test/light.test.js @@ -13,7 +13,8 @@ test('should work if manual set to light mode', async t => { const compilationStats = await generate({ context: t.context.root, output: { - path: dist + path: dist, + publicPath: '/' }, plugins: [ new HtmlWebpackPlugin(), @@ -30,7 +31,8 @@ test('should automatically pick up the dev mode from webpack', async t => { mode: 'development', context: t.context.root, output: { - path: dist + path: dist, + publicPath: '/' }, plugins: [new HtmlWebpackPlugin(), new FaviconsWebpackPlugin({ logo })] }); diff --git a/test/prefixed.test.js b/test/prefixed.test.js index 194d0d04..0ee5fcce 100644 --- a/test/prefixed.test.js +++ b/test/prefixed.test.js @@ -13,13 +13,14 @@ test('should allow configuring the output prefix', async t => { const compilationStats = await generate({ context: t.context.root, output: { - path: dist + path: dist, + publicPath: '/' }, plugins: [ new HtmlWebpackPlugin(), new FaviconsWebpackPlugin({ logo, - prefix: 'custom/prefix/[contenthash:8]' + prefix: 'custom/prefix/[contenthash:8]/' }) ] }); @@ -32,13 +33,14 @@ test('should allow configuring the output prefix for light mode', async t => { const compilationStats = await generate({ context: t.context.root, output: { - path: dist + path: dist, + publicPath: '/' }, plugins: [ new HtmlWebpackPlugin(), new FaviconsWebpackPlugin({ logo, - prefix: 'custom/prefix/[contenthash:8]', + prefix: 'custom/prefix/[contenthash:8]/', mode: 'light' }) ] @@ -52,13 +54,14 @@ test('should allow configuring the output prefix with a fullhash', async t => { const compilationStats = await generate({ context: t.context.root, output: { - path: dist + path: dist, + publicPath: '/' }, plugins: [ new HtmlWebpackPlugin(), new FaviconsWebpackPlugin({ logo, - prefix: 'custom/prefix/[fullhash:8]' + prefix: 'custom/prefix/[fullhash:8]/' }) ] }); @@ -71,13 +74,14 @@ test('should allow configuring the output prefix for light mode with a fullhash' const compilationStats = await generate({ context: t.context.root, output: { - path: dist + path: dist, + publicPath: '/' }, plugins: [ new HtmlWebpackPlugin(), new FaviconsWebpackPlugin({ logo, - prefix: 'custom/prefix/[fullhash:8]', + prefix: 'custom/prefix/[fullhash:8]/', mode: 'light' }) ] diff --git a/test/publicpath.test.js b/test/publicpath.test.js index e5f5e42b..d9dbecd3 100644 --- a/test/publicpath.test.js +++ b/test/publicpath.test.js @@ -16,7 +16,42 @@ test('should take the public path into account', async t => { path: dist, publicPath: '/public/path' }, - plugins: [new HtmlWebpackPlugin(), new FaviconsWebpackPlugin({ logo })] + plugins: [ + new HtmlWebpackPlugin(), + new FaviconsWebpackPlugin({ logo, mode: 'webapp' }) + ] + }); + + snapshotCompilationAssets(t, compilationStats); +}); + +test('should work with an empty public path', async t => { + const dist = path.join(t.context.root, 'dist'); + const compilationStats = await generate({ + context: t.context.root, + output: { + path: dist + }, + plugins: [ + new HtmlWebpackPlugin(), + new FaviconsWebpackPlugin({ logo, mode: 'webapp' }) + ] + }); + + snapshotCompilationAssets(t, compilationStats); +}); + +test('should work with an empty public path and a nested html file', async t => { + const dist = path.join(t.context.root, 'dist'); + const compilationStats = await generate({ + context: t.context.root, + output: { + path: dist + }, + plugins: [ + new HtmlWebpackPlugin({ filename: 'demo/index.html' }), + new FaviconsWebpackPlugin({ logo, mode: 'webapp' }) + ] }); snapshotCompilationAssets(t, compilationStats); diff --git a/test/publicpathLight.test.js b/test/publicpathLight.test.js new file mode 100644 index 00000000..a41136be --- /dev/null +++ b/test/publicpathLight.test.js @@ -0,0 +1,60 @@ +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, snapshotCompilationAssets } = require('./util'); + +test.beforeEach(async t => (t.context.root = await mkdir())); + +test('should take the public path into account', async t => { + const dist = path.join(t.context.root, 'dist'); + const compilationStats = await generate({ + context: t.context.root, + output: { + path: dist, + publicPath: '/public/path' + }, + plugins: [ + new HtmlWebpackPlugin(), + new FaviconsWebpackPlugin({ logo, mode: 'light' }) + ] + }); + + snapshotCompilationAssets(t, compilationStats); +}); + +test('should work with an empty public path', async t => { + const dist = path.join(t.context.root, 'dist'); + const compilationStats = await generate({ + context: t.context.root, + output: { + path: dist + }, + plugins: [ + new HtmlWebpackPlugin(), + new FaviconsWebpackPlugin({ logo, mode: 'light' }) + ] + }); + + snapshotCompilationAssets(t, compilationStats); +}); + +test('should work with an empty public path and a nested html file', async t => { + const dist = path.join(t.context.root, 'dist'); + const compilationStats = await generate({ + context: t.context.root, + output: { + path: dist + }, + plugins: [ + new HtmlWebpackPlugin({ filename: 'demo/index.html' }), + new FaviconsWebpackPlugin({ logo, mode: 'light' }) + ] + }); + + snapshotCompilationAssets(t, compilationStats); +}); + +test.afterEach(t => fs.remove(t.context.root)); diff --git a/test/snapshots/default.test.js.md b/test/snapshots/default.test.js.md index d98fc92f..22ed0e70 100644 --- a/test/snapshots/default.test.js.md +++ b/test/snapshots/default.test.js.md @@ -259,10 +259,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -319,47 +319,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/assets/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -373,9 +373,9 @@ Generated by [AVA](https://ava.li). "name": null,␊ "description": null,␊ "icons": {␊ - "60": "/assets/firefox_app_60x60.png",␊ - "128": "/assets/firefox_app_128x128.png",␊ - "512": "/assets/firefox_app_512x512.png"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -413,7 +413,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/assets/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ diff --git a/test/snapshots/default.test.js.snap b/test/snapshots/default.test.js.snap index 4db0dcbe0e7185c3322a6a9ef9e7768d43fdace1..3ee7bf3aebe51dce53c9cfbb42d4dd6f763e5c5a 100644 GIT binary patch literal 3257 zcmV;q3`X-oRzV=u0!67;R?ubY zO7()Rs-o#m3*|3{?u5=lohudPAanp>C zQ4&xJx()gX^d3~-ifx3_(4Eke(0h=tO;KXdHPCI)Dd-Q-di2LCwW&*OyfB|nEvl;J zIyyQO)u*VFirNaIPU%tW6}7QT-I6L4v|=Hc%1!6>%yb}qIIquXf$-?40gcS(X3d1E zIz`4J24s)aIYc6{xB=NC^;V>>d?Xq-qD-K{p++=0YC!f#qeG3+q%oSb2bvse#KI8+ zvPV`p)JQ~(1QS^45EzRaW6Xv(TY*6$yNU6v1A^fA*NqiVakZ zg^>y~p%&**BxFGLP^)uDJj&XfLopm@F{ba@okQ`20og+x&Y>i>DamY8r*I_jp;*F* zF?G5eBk_m2)I+B$xxJ$BGP9ip=M=v_3bl7qn@6aJ3cOP$6iC*I4jK z8MshP<%^kA}*&%=UVcapu0A!Evl#k=QH^=~B zkMEL?DNd4heEXGaWL*lQXI7 z%?m7czMTwKBGJw4NfN3=3g5%R7TL{`Blyo^A{MjRVlsJcMmMI=c~fE1P3#s$tMO&N z*o|8J#xlHcC68Hjk4ev^a+w*eP#n3opywWFp-f7jv?7Prpg3dKye?6>t~ zC6pXz>@{Yr0vZhq=cN83FTX4WPknBPRGSZd{;j z7w@$~E9O#}99G$G87KS6?I9F`_CTM6E;er=XQ4cF4EhRmH}q}jVdxa}Gw22ARp@=_ zFVF`N?y;0ss2B1>0VoOWgZ4w8gQg)Jx&gWcx&yigdJuXHdIowPdKr2L`V({x`Uq;q zt!fX{2knGn&;`(^q06BZl!cB!H=DP(--I53PC`G0o~w7bUEHgvEvoubJ?$vC58+gm z+QA08jl>=#ww~If#5Pd-AhC_qo+Y-4+W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tJvp2WfIA%R`al2-pYO4R}20jc5upv-0_ z7Pp6uo2PkguDIBx$kUy*TUI)9vlokZJf-`&LlebJF-v-9F+Zo4I^+KV$-1nBi$MSY D(E=aq diff --git a/test/snapshots/html.false.test.js.md b/test/snapshots/html.false.test.js.md index 0f814709..c87a681d 100644 --- a/test/snapshots/html.false.test.js.md +++ b/test/snapshots/html.false.test.js.md @@ -260,10 +260,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -320,47 +320,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/assets/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -374,9 +374,9 @@ Generated by [AVA](https://ava.li). "name": null,␊ "description": null,␊ "icons": {␊ - "60": "/assets/firefox_app_60x60.png",␊ - "128": "/assets/firefox_app_128x128.png",␊ - "512": "/assets/firefox_app_512x512.png"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -414,7 +414,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/assets/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ @@ -690,10 +690,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -750,47 +750,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/assets/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -804,9 +804,9 @@ Generated by [AVA](https://ava.li). "name": null,␊ "description": null,␊ "icons": {␊ - "60": "/assets/firefox_app_60x60.png",␊ - "128": "/assets/firefox_app_128x128.png",␊ - "512": "/assets/firefox_app_512x512.png"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -844,7 +844,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/assets/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ @@ -1120,10 +1120,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -1180,47 +1180,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/assets/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -1234,9 +1234,9 @@ Generated by [AVA](https://ava.li). "name": null,␊ "description": null,␊ "icons": {␊ - "60": "/assets/firefox_app_60x60.png",␊ - "128": "/assets/firefox_app_128x128.png",␊ - "512": "/assets/firefox_app_512x512.png"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -1274,7 +1274,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/assets/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ diff --git a/test/snapshots/html.false.test.js.snap b/test/snapshots/html.false.test.js.snap index 9eb892b86be0d0e79c5f063f171501ecfedfdb61..17a1ddb5b1e0be1f110bcd9598cefa3b6a3632b3 100644 GIT binary patch literal 3856 zcmb7Ac{mj8yQZ;?Wqe4sP}z4gcG-q3*_UjSt%N~_>?SnKNHUR6h|e-Y3NdOd5oN@T zP*bum@fnOFj4h0u>U_V`IoG+a-*x@oKkoN=@9TN)`+i=i8}yV5;!;EuJUseTEQIqI z)7Jz+kwWpTWS-ZSR?J8KXCyN@n0_6=YVq}}7l*}3*}1a8#gz%#N!3|HIx+lbGja*% zhaeJ@7(cP>3_*_isNDOqon5i8AlLLi1Vp*tgXPsr0b!SmFq&NyKi0;K7Qb3e34w`T zi-b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F9^{@36S(@K| zy|y_*_)Fg?`ewfC<>a`&s@^%m)xSRE%x>9O@9wZ{OEE&+jk%f|uk0_Sjkqf-57f*X zK8ucAu-53?7)q9w6MGS4?uC%fnd#rO;=13BnEJ|}Gv;g+U~Uk1RQ)d7+i}j!BvTJ1 zdfuIU2g3iUDrk84Yg~pGP$|=Nf{@AP2E3o2#RCwNbd+Z4xOE|u{abR6U1#rsgs0KK zK$YF@j?(Ldf-RM(8pYyTZ}f6;=Rv)V7pb&cdGAm)byY%tfc$4PAmx!*bjP!NN}i_( zvpf1}!?(WBJ_c^oH*J^d##gAnYb)@%`O3Il++=|3(!TZhht||_NY&LA@b>`ZAV&Ye3)qlallV$vu>Gt9T+!#j&CtJv6W8b4ihAy7&x)=6!YLlaBS1>8PRr zk1Ngox|Kyr3r=WC*IudB$%m95%6_-c3+Q!z9!)pwFMfJOdpO}i%>L$)e7>!*#QVr8 z!^j0)m2YawYKEmGF}8u}-sF1Qy4|DRow3+`{VCwFr0{n7t-Kxh_nLjGCc&ldjzPr`c{{t;Z$ zw@xX>6<_{uK&T{eVlj##{W@%)_U~a@Ci1__RwCfZzvJxs{Li2MPZgkT^>-Fx`@B)V TBYN+Cc{_Bh3X68@q@no_␊ ␊ ␊ ␊ ␊ @@ -457,10 +457,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -517,47 +517,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/assets/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -571,9 +571,9 @@ Generated by [AVA](https://ava.li). "name": null,␊ "description": null,␊ "icons": {␊ - "60": "/assets/firefox_app_60x60.png",␊ - "128": "/assets/firefox_app_128x128.png",␊ - "512": "/assets/firefox_app_512x512.png"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -611,7 +611,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/assets/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ diff --git a/test/snapshots/html.multiple.test.js.snap b/test/snapshots/html.multiple.test.js.snap index dc61d4a949382c7157ca387e6665b1e4533fb070..6d5263076b88f9e7bfd8232b2990befaff80d6f2 100644 GIT binary patch literal 4177 zcmV-X5U%e*RzVmQ2<00000000Bk zoC%EF)EUR^Y&OT{zQ~`W&fe1*NghPlU^3Hm*LuO}&887j27bukw zpit4OB|<<^sVMgqL8)3*LOl>|5m1myt0Jn>sw!`S0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dj+B{KN*`zIF^UF=Ye?MZb+V*zxN?)a4$*`=OF1|b>3ra8iVYc V9NChBGT6T diff --git a/test/snapshots/html.true.test.js.md b/test/snapshots/html.true.test.js.md index c8c72c02..1ed33c16 100644 --- a/test/snapshots/html.true.test.js.md +++ b/test/snapshots/html.true.test.js.md @@ -260,10 +260,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -320,47 +320,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/assets/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -374,9 +374,9 @@ Generated by [AVA](https://ava.li). "name": null,␊ "description": null,␊ "icons": {␊ - "60": "/assets/firefox_app_60x60.png",␊ - "128": "/assets/firefox_app_128x128.png",␊ - "512": "/assets/firefox_app_512x512.png"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -414,7 +414,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/assets/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ @@ -427,25 +427,25 @@ Generated by [AVA](https://ava.li). ␊ ␊ ␊ ␊ ␊ @@ -874,10 +874,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -934,47 +934,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/assets/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/assets/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -988,9 +988,9 @@ Generated by [AVA](https://ava.li). "name": null,␊ "description": null,␊ "icons": {␊ - "60": "/assets/firefox_app_60x60.png",␊ - "128": "/assets/firefox_app_128x128.png",␊ - "512": "/assets/firefox_app_512x512.png"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -1028,7 +1028,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/assets/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ @@ -1039,25 +1039,25 @@ Generated by [AVA](https://ava.li). content: `␊ ␊ ␊ ␊ `, diff --git a/test/snapshots/html.true.test.js.snap b/test/snapshots/html.true.test.js.snap index ae52844d18073bc8a662c3a62bacdbd527843c95..48f2a2d42000ec672853efd51278514ccdafe5cc 100644 GIT binary patch literal 4842 zcmZ9GcOVr0|Hsb_l$(ex`1bjHf8+c6z5jW=-jCPo`Fy^vJ6;#IyLUSz%s)6>_`cG4AfP^|X%$)kuRb{X zxDws!lXo$d9`Mft?YTz>3cP!`EV{pz$zhsYzC69{-xVl`V5X2vGPANjnDVcq=I#UD zDdudzO-mv=JC+11y&2W$-M~%k9}pklg?X96$W*|Qt=48fO0rnW( z`Fpo}yO&w_`|^AT2jyFOv8Iu|AtLU8#GXBI@eG&8Ria5QySmc#D)pY6V|Wa?C}p}X z5aW?4n5p(WMQVhH?6Jy@i$n(C#?;B$I8odyTmWwPo*{ynthjm&cLp4mODU&817iUv z=S+eea*mObNHjonkz>OhCyC-lYSYJYlhw(`)#J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LPxuNi%yT@qhBB=-xL-ok1Lc^suv2GPnigMZLC=x@BKMeNin=E{VNRq^#ZTO(yNvPnDT@Teh5BGt-YOGO&_qjn#bmdpk+fVc_Vcsh98FeH6F-CqxEK~IHlOZXDxAsL*>OdBn0Pgh%?d#)m>t7M=OfBWg+DhE5(2N+Z2U%`SE&hd zZHY7lxp)Q2iZqSC=N}PYZW82RSFpjiJ<)$N;-j!ZM+@}o7lpSfxJP6`5OuZ$*dW*c z3&C?x>4bkwzuaTf_-98(D$DjUlL5p%Gpb* z8HuYYK%lvt0y&&)Mmahe3_4A$GxGy9^IGO}^>QQJFYG?uqklUwP!vn%AN^~)C55X^ z_%XGmxvUYW!tPppd0jVh1-zrj;f=AQus$k(I21?G*`Suf)+QR%l+?X{j?2xIBddGK zddufaN1GZfcR|M_u7i(4=2;6-3UiyNE47)ctXY5g!)tLEpB>WVn{A?YO*1t~!OH1vb8ifT+nr7USqX␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -516,47 +516,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/public/path/assets/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -570,9 +570,9 @@ Generated by [AVA](https://ava.li). "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"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -610,7 +610,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/public/path/assets/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ diff --git a/test/snapshots/outputpathoption.test.js.snap b/test/snapshots/outputpathoption.test.js.snap index 9ef05e474cafb5cda8ebf74d68a04c1bbb837bf8..e60c827597aa17a69d379f184e50f6d35db11ef8 100644 GIT binary patch literal 4169 zcmV-P5Vr3@RzV-J>00000000Bk zTnlU*#Tnj86q)ti+TP@RcfH$7&QPeT zqKZ2to@{r>s?nVp^8o!2%+Q9Q~8%{OlR_PW#c^~b+3^6SU1dv1eSPl1=0rvuL0-NV6${6q>{L8$if6atSpdZxWtpc*@w6=VwCU-jR_q!#CQ{ZZkHvL7YY;s z)^4Gcomdk)rR;i87keC~xk$<`8Y=><-C`-bIPw>Fe1z|m%`Z6Jwg+>yj7_2nZR zjuc}(j(n`EFNhwLL@3~F`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u9k#zFBFNAunk;|!nvJ_L=?7xyHPlHWRZ!&GH^eNa2<8iHgL6W zI`)N;sGFAF&641DmZ@D5GX}0lQQDkFG74hgY81}>Z6uiLs~AcXVSyIU~jskE4VhJ@4(>q*VpSx71^W*4Fgky$$rNvCG*QY54{GiowIMo5PG zO26AnCEaHhwRt)Exa-kA)W==5`YTkK?YSg+!A*Jn-pcInRr`aSiW~REY!4>U)lS5X z`)XQeccsnAs(XQ?uF{j)+f1hGlgel3v#EXfwRcx@w?nM*=4@3P?@a48xbb~-G3uZ< zT}Y*NlHYWN^#T59Qp+cDdX}^dj>CEmKYeP!$oS}il!~?pN3^v6l8bznCZA2I)8r_g zYw4t#%A_^(6f@RMlSxmT$LaI$Kp~eRNBc%6GgHL9rlp62reI7>9Gu8y3hCqlb2%<_ zbR?LbrR#Ldogg(kk3*N!7VjFXA@rf0rH;xCs8<+Rqv@H(WF(xJ({rWcWbm9E=7!I& z-Px$`(z0pMx48`_XGP!UvfSqRo*9KIHqk#bs$A}lGtV~BKl7X@bX4M8g=%Ed|^)gN? z2wul`mTTlIH0O5vXqJ>O8mLrEWuI$SIr#8&ma$`=`?e)1ObJW&s8|Q_ ztrFvPL|p$&ipsmaN{qk~asA`X)#iBBXgTgzDz+SIRzFZW9<*NarZWYjbf1xr)k^nm krGl_;dGRgHd␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -320,47 +320,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -374,9 +374,9 @@ Generated by [AVA](https://ava.li). "name": null,␊ "description": null,␊ "icons": {␊ - "60": "/custom/prefix/__replaced_hash_8/firefox_app_60x60.png",␊ - "128": "/custom/prefix/__replaced_hash_8/firefox_app_128x128.png",␊ - "512": "/custom/prefix/__replaced_hash_8/firefox_app_512x512.png"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -414,7 +414,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/custom/prefix/__replaced_hash_8/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ @@ -942,10 +942,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -1002,47 +1002,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/custom/prefix/__replaced_hash_8/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -1056,9 +1056,9 @@ Generated by [AVA](https://ava.li). "name": null,␊ "description": null,␊ "icons": {␊ - "60": "/custom/prefix/__replaced_hash_8/firefox_app_60x60.png",␊ - "128": "/custom/prefix/__replaced_hash_8/firefox_app_128x128.png",␊ - "512": "/custom/prefix/__replaced_hash_8/firefox_app_512x512.png"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -1096,7 +1096,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/custom/prefix/__replaced_hash_8/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ diff --git a/test/snapshots/prefixed.test.js.snap b/test/snapshots/prefixed.test.js.snap index 3e8be4518340ab69458014a4e5a5d683f6a0138b..1d214597cbdccb3de1a979fc1bc826cbeaef34f1 100644 GIT binary patch literal 4879 zcmaJ;cRbsB*cG9+7PUvDX6!8}iqN`YrpkU5_XEYN!K`3u?hZ9g*=bbb zCU&i5r714?nJw`Ntr&TkC$R{y8aOr^H3Pg$!nO(KrmzIa9MbL?pd1&d7P6I8l_-&< zY!RmqQS`RG>Z%f`vGCUXWZE4zZ=dkwV?fx=DB1VIJLF=mS;?{ClM#*7w0opGY6}@) zRVCm7HJuN`iP1t1YLrG*ALRwSq$JWHYom8@{>dT8|Ycoeg%IEGuEeXH+W)aV(4UT`Rd~Hi6hFf=?FczZ~ z1~^&F##9EpY)~E5@3Sv2GpknJ_5SFODr1-c+m`vtPEWV=28~ZcBakk zG=kBEDWW2)$Z{S>K$jLL6NI>HqAIw|?xe+-(&7HA7-7Bu1RXU=SEs(%TI0cbE4w6H zf(7OFvpcl!A2;2OGrdzgNfyiX%KMua`+Swp7w_949%8m_a>sJ^P?p~2`b4qwtBJb2 zRv;|5m8sNXx1gsA2Z+VH2#(S{m3i?E($#6&hhYxN6^q|^f4`ct{)ZZj>1&&1p=|#2 zj-3YO*ePYz707i3M)NW$tw-4%bn#%ha;QMQU%aJ6zMeGE#XKt^3;9My;(0fojYmEz zb1M&y5;^-pyOoUgecu^A-Ezx?N`Rhm51Ais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B3b1fA1gv0yPKyp*ilyumVZ!J=q}M*SP&fC4}qJ(pR1s??S*+PGS<`W zA8=mgs+$*&UmVe*?!lA72XjTo*YCusW~{rNasGOqJ;L8*t9wPX&(=3DZrElO{B{ps zuUjHIE;Q)(>r#fnycn9XUfHJo=)WuiKybbi{C`)@5v4a*wDuF(E64RaBw7TocO-lS zYgEr$`v)S9FhblrpYMbwC^;_zD+&xI)HS+?_^0P>ql|UG3|2yu2dEK3Bv;WZ!W1Kn zj|kb0>-7YBL!s3_bZo8Y_*4+SUUa;*jS#USHF!0|)`Z(tu(R>4K|g}h!cqL{eFYL+ zW$Ksp2?;W?9~~itVqKBO|DA07m{49Xo=}XOp7(!Mj`m{px{h25gv0$m2VqlFCe28E z8P%Qtdbi3%{;Tn?pPn$1xOuh2tDTKVGt&OM((VA;^C8s#+2VxZ{pbJugmFxc$%OUt V)d-Gr_u!WlweggTCR;>A{{uwyqV50y diff --git a/test/snapshots/publicpath.test.js.md b/test/snapshots/publicpath.test.js.md index 5b43204c..aa9b2721 100644 --- a/test/snapshots/publicpath.test.js.md +++ b/test/snapshots/publicpath.test.js.md @@ -260,10 +260,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -320,47 +320,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/public/path/assets/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/public/path/assets/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -374,9 +374,9 @@ Generated by [AVA](https://ava.li). "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"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -414,7 +414,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/public/path/assets/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ @@ -617,3 +617,1231 @@ Generated by [AVA](https://ava.li). `, }, ] + +## should work with an empty public path + +> Snapshot 1 + + [ + 'assets/android-chrome-144x144.png', + 'assets/android-chrome-192x192.png', + 'assets/android-chrome-256x256.png', + 'assets/android-chrome-36x36.png', + 'assets/android-chrome-384x384.png', + 'assets/android-chrome-48x48.png', + 'assets/android-chrome-512x512.png', + 'assets/android-chrome-72x72.png', + 'assets/android-chrome-96x96.png', + 'assets/apple-touch-icon-1024x1024.png', + 'assets/apple-touch-icon-114x114.png', + 'assets/apple-touch-icon-120x120.png', + 'assets/apple-touch-icon-144x144.png', + 'assets/apple-touch-icon-152x152.png', + 'assets/apple-touch-icon-167x167.png', + 'assets/apple-touch-icon-180x180.png', + 'assets/apple-touch-icon-57x57.png', + 'assets/apple-touch-icon-60x60.png', + 'assets/apple-touch-icon-72x72.png', + 'assets/apple-touch-icon-76x76.png', + 'assets/apple-touch-icon-precomposed.png', + 'assets/apple-touch-icon.png', + 'assets/apple-touch-startup-image-1125x2436.png', + 'assets/apple-touch-startup-image-1136x640.png', + 'assets/apple-touch-startup-image-1242x2208.png', + 'assets/apple-touch-startup-image-1242x2688.png', + 'assets/apple-touch-startup-image-1334x750.png', + 'assets/apple-touch-startup-image-1536x2048.png', + 'assets/apple-touch-startup-image-1620x2160.png', + 'assets/apple-touch-startup-image-1668x2224.png', + 'assets/apple-touch-startup-image-1668x2388.png', + 'assets/apple-touch-startup-image-1792x828.png', + 'assets/apple-touch-startup-image-2048x1536.png', + 'assets/apple-touch-startup-image-2048x2732.png', + 'assets/apple-touch-startup-image-2160x1620.png', + 'assets/apple-touch-startup-image-2208x1242.png', + 'assets/apple-touch-startup-image-2224x1668.png', + 'assets/apple-touch-startup-image-2388x1668.png', + 'assets/apple-touch-startup-image-2436x1125.png', + 'assets/apple-touch-startup-image-2688x1242.png', + 'assets/apple-touch-startup-image-2732x2048.png', + 'assets/apple-touch-startup-image-640x1136.png', + 'assets/apple-touch-startup-image-750x1334.png', + 'assets/apple-touch-startup-image-828x1792.png', + 'assets/browserconfig.xml', + 'assets/coast-228x228.png', + 'assets/favicon-16x16.png', + 'assets/favicon-32x32.png', + 'assets/favicon-48x48.png', + 'assets/favicon.ico', + 'assets/firefox_app_128x128.png', + 'assets/firefox_app_512x512.png', + 'assets/firefox_app_60x60.png', + 'assets/manifest.json', + 'assets/manifest.webapp', + 'assets/mstile-144x144.png', + 'assets/mstile-150x150.png', + 'assets/mstile-310x150.png', + 'assets/mstile-310x310.png', + 'assets/mstile-70x70.png', + 'assets/yandex-browser-50x50.png', + 'assets/yandex-browser-manifest.json', + 'index.html', + 'main.js', + ] + +> Snapshot 2 + + [ + { + assetName: 'assets/android-chrome-144x144.png', + content: 'png 144x144', + }, + { + assetName: 'assets/android-chrome-192x192.png', + content: 'png 192x192', + }, + { + assetName: 'assets/android-chrome-256x256.png', + content: 'png 256x256', + }, + { + assetName: 'assets/android-chrome-36x36.png', + content: 'png 36x36', + }, + { + assetName: 'assets/android-chrome-384x384.png', + content: 'png 384x384', + }, + { + assetName: 'assets/android-chrome-48x48.png', + content: 'png 48x48', + }, + { + assetName: 'assets/android-chrome-512x512.png', + content: 'png 512x512', + }, + { + assetName: 'assets/android-chrome-72x72.png', + content: 'png 72x72', + }, + { + assetName: 'assets/android-chrome-96x96.png', + content: 'png 96x96', + }, + { + assetName: 'assets/apple-touch-icon-1024x1024.png', + content: 'png 1024x1024', + }, + { + assetName: 'assets/apple-touch-icon-114x114.png', + content: 'png 114x114', + }, + { + assetName: 'assets/apple-touch-icon-120x120.png', + content: 'png 120x120', + }, + { + assetName: 'assets/apple-touch-icon-144x144.png', + content: 'png 144x144', + }, + { + assetName: 'assets/apple-touch-icon-152x152.png', + content: 'png 152x152', + }, + { + assetName: 'assets/apple-touch-icon-167x167.png', + content: 'png 167x167', + }, + { + assetName: 'assets/apple-touch-icon-180x180.png', + content: 'png 180x180', + }, + { + assetName: 'assets/apple-touch-icon-57x57.png', + content: 'png 57x57', + }, + { + assetName: 'assets/apple-touch-icon-60x60.png', + content: 'png 60x60', + }, + { + assetName: 'assets/apple-touch-icon-72x72.png', + content: 'png 72x72', + }, + { + assetName: 'assets/apple-touch-icon-76x76.png', + content: 'png 76x76', + }, + { + assetName: 'assets/apple-touch-icon-precomposed.png', + content: 'png 180x180', + }, + { + assetName: 'assets/apple-touch-icon.png', + content: 'png 180x180', + }, + { + assetName: 'assets/apple-touch-startup-image-1125x2436.png', + content: 'png 1125x2436', + }, + { + assetName: 'assets/apple-touch-startup-image-1136x640.png', + content: 'png 1136x640', + }, + { + assetName: 'assets/apple-touch-startup-image-1242x2208.png', + content: 'png 1242x2208', + }, + { + assetName: 'assets/apple-touch-startup-image-1242x2688.png', + content: 'png 1242x2688', + }, + { + assetName: 'assets/apple-touch-startup-image-1334x750.png', + content: 'png 1334x750', + }, + { + assetName: 'assets/apple-touch-startup-image-1536x2048.png', + content: 'png 1536x2048', + }, + { + assetName: 'assets/apple-touch-startup-image-1620x2160.png', + content: 'png 1620x2160', + }, + { + assetName: 'assets/apple-touch-startup-image-1668x2224.png', + content: 'png 1668x2224', + }, + { + assetName: 'assets/apple-touch-startup-image-1668x2388.png', + content: 'png 1668x2388', + }, + { + assetName: 'assets/apple-touch-startup-image-1792x828.png', + content: 'png 1792x828', + }, + { + assetName: 'assets/apple-touch-startup-image-2048x1536.png', + content: 'png 2048x1536', + }, + { + assetName: 'assets/apple-touch-startup-image-2048x2732.png', + content: 'png 2048x2732', + }, + { + assetName: 'assets/apple-touch-startup-image-2160x1620.png', + content: 'png 2160x1620', + }, + { + assetName: 'assets/apple-touch-startup-image-2208x1242.png', + content: 'png 2208x1242', + }, + { + assetName: 'assets/apple-touch-startup-image-2224x1668.png', + content: 'png 2224x1668', + }, + { + assetName: 'assets/apple-touch-startup-image-2388x1668.png', + content: 'png 2388x1668', + }, + { + assetName: 'assets/apple-touch-startup-image-2436x1125.png', + content: 'png 2436x1125', + }, + { + assetName: 'assets/apple-touch-startup-image-2688x1242.png', + content: 'png 2688x1242', + }, + { + assetName: 'assets/apple-touch-startup-image-2732x2048.png', + content: 'png 2732x2048', + }, + { + assetName: 'assets/apple-touch-startup-image-640x1136.png', + content: 'png 640x1136', + }, + { + assetName: 'assets/apple-touch-startup-image-750x1334.png', + content: 'png 750x1334', + }, + { + assetName: 'assets/apple-touch-startup-image-828x1792.png', + content: 'png 828x1792', + }, + { + assetName: 'assets/browserconfig.xml', + content: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + #fff␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + }, + { + assetName: 'assets/coast-228x228.png', + content: 'png 228x228', + }, + { + assetName: 'assets/favicon-16x16.png', + content: 'png 16x16', + }, + { + assetName: 'assets/favicon-32x32.png', + content: 'png 32x32', + }, + { + assetName: 'assets/favicon-48x48.png', + content: 'png 48x48', + }, + { + assetName: 'assets/favicon.ico', + content: 'ico 16x16', + }, + { + assetName: 'assets/firefox_app_128x128.png', + content: 'png 128x128', + }, + { + assetName: 'assets/firefox_app_512x512.png', + content: 'png 512x512', + }, + { + assetName: 'assets/firefox_app_60x60.png', + content: 'png 60x60', + }, + { + assetName: 'assets/manifest.json', + content: `{␊ + "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": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png"␊ + }␊ + ]␊ + }`, + }, + { + assetName: 'assets/manifest.webapp', + content: `{␊ + "version": "1.0",␊ + "name": null,␊ + "description": null,␊ + "icons": {␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ + },␊ + "developer": {␊ + "name": null,␊ + "url": null␊ + }␊ + }`, + }, + { + assetName: 'assets/mstile-144x144.png', + content: 'png 144x144', + }, + { + assetName: 'assets/mstile-150x150.png', + content: 'png 150x150', + }, + { + assetName: 'assets/mstile-310x150.png', + content: 'png 310x150', + }, + { + assetName: 'assets/mstile-310x310.png', + content: 'png 310x310', + }, + { + assetName: 'assets/mstile-70x70.png', + content: 'png 70x70', + }, + { + assetName: 'assets/yandex-browser-50x50.png', + content: 'png 50x50', + }, + { + assetName: 'assets/yandex-browser-manifest.json', + content: `{␊ + "version": "1.0",␊ + "api_version": 1,␊ + "layout": {␊ + "logo": "yandex-browser-50x50.png",␊ + "color": "#fff",␊ + "show_title": true␊ + }␊ + }`, + }, + { + assetName: 'index.html', + content: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + }, + ] + +## should work with an empty public path and a nested html file + +> Snapshot 1 + + [ + 'assets/android-chrome-144x144.png', + 'assets/android-chrome-192x192.png', + 'assets/android-chrome-256x256.png', + 'assets/android-chrome-36x36.png', + 'assets/android-chrome-384x384.png', + 'assets/android-chrome-48x48.png', + 'assets/android-chrome-512x512.png', + 'assets/android-chrome-72x72.png', + 'assets/android-chrome-96x96.png', + 'assets/apple-touch-icon-1024x1024.png', + 'assets/apple-touch-icon-114x114.png', + 'assets/apple-touch-icon-120x120.png', + 'assets/apple-touch-icon-144x144.png', + 'assets/apple-touch-icon-152x152.png', + 'assets/apple-touch-icon-167x167.png', + 'assets/apple-touch-icon-180x180.png', + 'assets/apple-touch-icon-57x57.png', + 'assets/apple-touch-icon-60x60.png', + 'assets/apple-touch-icon-72x72.png', + 'assets/apple-touch-icon-76x76.png', + 'assets/apple-touch-icon-precomposed.png', + 'assets/apple-touch-icon.png', + 'assets/apple-touch-startup-image-1125x2436.png', + 'assets/apple-touch-startup-image-1136x640.png', + 'assets/apple-touch-startup-image-1242x2208.png', + 'assets/apple-touch-startup-image-1242x2688.png', + 'assets/apple-touch-startup-image-1334x750.png', + 'assets/apple-touch-startup-image-1536x2048.png', + 'assets/apple-touch-startup-image-1620x2160.png', + 'assets/apple-touch-startup-image-1668x2224.png', + 'assets/apple-touch-startup-image-1668x2388.png', + 'assets/apple-touch-startup-image-1792x828.png', + 'assets/apple-touch-startup-image-2048x1536.png', + 'assets/apple-touch-startup-image-2048x2732.png', + 'assets/apple-touch-startup-image-2160x1620.png', + 'assets/apple-touch-startup-image-2208x1242.png', + 'assets/apple-touch-startup-image-2224x1668.png', + 'assets/apple-touch-startup-image-2388x1668.png', + 'assets/apple-touch-startup-image-2436x1125.png', + 'assets/apple-touch-startup-image-2688x1242.png', + 'assets/apple-touch-startup-image-2732x2048.png', + 'assets/apple-touch-startup-image-640x1136.png', + 'assets/apple-touch-startup-image-750x1334.png', + 'assets/apple-touch-startup-image-828x1792.png', + 'assets/browserconfig.xml', + 'assets/coast-228x228.png', + 'assets/favicon-16x16.png', + 'assets/favicon-32x32.png', + 'assets/favicon-48x48.png', + 'assets/favicon.ico', + 'assets/firefox_app_128x128.png', + 'assets/firefox_app_512x512.png', + 'assets/firefox_app_60x60.png', + 'assets/manifest.json', + 'assets/manifest.webapp', + 'assets/mstile-144x144.png', + 'assets/mstile-150x150.png', + 'assets/mstile-310x150.png', + 'assets/mstile-310x310.png', + 'assets/mstile-70x70.png', + 'assets/yandex-browser-50x50.png', + 'assets/yandex-browser-manifest.json', + 'demo/index.html', + 'main.js', + ] + +> Snapshot 2 + + [ + { + assetName: 'assets/android-chrome-144x144.png', + content: 'png 144x144', + }, + { + assetName: 'assets/android-chrome-192x192.png', + content: 'png 192x192', + }, + { + assetName: 'assets/android-chrome-256x256.png', + content: 'png 256x256', + }, + { + assetName: 'assets/android-chrome-36x36.png', + content: 'png 36x36', + }, + { + assetName: 'assets/android-chrome-384x384.png', + content: 'png 384x384', + }, + { + assetName: 'assets/android-chrome-48x48.png', + content: 'png 48x48', + }, + { + assetName: 'assets/android-chrome-512x512.png', + content: 'png 512x512', + }, + { + assetName: 'assets/android-chrome-72x72.png', + content: 'png 72x72', + }, + { + assetName: 'assets/android-chrome-96x96.png', + content: 'png 96x96', + }, + { + assetName: 'assets/apple-touch-icon-1024x1024.png', + content: 'png 1024x1024', + }, + { + assetName: 'assets/apple-touch-icon-114x114.png', + content: 'png 114x114', + }, + { + assetName: 'assets/apple-touch-icon-120x120.png', + content: 'png 120x120', + }, + { + assetName: 'assets/apple-touch-icon-144x144.png', + content: 'png 144x144', + }, + { + assetName: 'assets/apple-touch-icon-152x152.png', + content: 'png 152x152', + }, + { + assetName: 'assets/apple-touch-icon-167x167.png', + content: 'png 167x167', + }, + { + assetName: 'assets/apple-touch-icon-180x180.png', + content: 'png 180x180', + }, + { + assetName: 'assets/apple-touch-icon-57x57.png', + content: 'png 57x57', + }, + { + assetName: 'assets/apple-touch-icon-60x60.png', + content: 'png 60x60', + }, + { + assetName: 'assets/apple-touch-icon-72x72.png', + content: 'png 72x72', + }, + { + assetName: 'assets/apple-touch-icon-76x76.png', + content: 'png 76x76', + }, + { + assetName: 'assets/apple-touch-icon-precomposed.png', + content: 'png 180x180', + }, + { + assetName: 'assets/apple-touch-icon.png', + content: 'png 180x180', + }, + { + assetName: 'assets/apple-touch-startup-image-1125x2436.png', + content: 'png 1125x2436', + }, + { + assetName: 'assets/apple-touch-startup-image-1136x640.png', + content: 'png 1136x640', + }, + { + assetName: 'assets/apple-touch-startup-image-1242x2208.png', + content: 'png 1242x2208', + }, + { + assetName: 'assets/apple-touch-startup-image-1242x2688.png', + content: 'png 1242x2688', + }, + { + assetName: 'assets/apple-touch-startup-image-1334x750.png', + content: 'png 1334x750', + }, + { + assetName: 'assets/apple-touch-startup-image-1536x2048.png', + content: 'png 1536x2048', + }, + { + assetName: 'assets/apple-touch-startup-image-1620x2160.png', + content: 'png 1620x2160', + }, + { + assetName: 'assets/apple-touch-startup-image-1668x2224.png', + content: 'png 1668x2224', + }, + { + assetName: 'assets/apple-touch-startup-image-1668x2388.png', + content: 'png 1668x2388', + }, + { + assetName: 'assets/apple-touch-startup-image-1792x828.png', + content: 'png 1792x828', + }, + { + assetName: 'assets/apple-touch-startup-image-2048x1536.png', + content: 'png 2048x1536', + }, + { + assetName: 'assets/apple-touch-startup-image-2048x2732.png', + content: 'png 2048x2732', + }, + { + assetName: 'assets/apple-touch-startup-image-2160x1620.png', + content: 'png 2160x1620', + }, + { + assetName: 'assets/apple-touch-startup-image-2208x1242.png', + content: 'png 2208x1242', + }, + { + assetName: 'assets/apple-touch-startup-image-2224x1668.png', + content: 'png 2224x1668', + }, + { + assetName: 'assets/apple-touch-startup-image-2388x1668.png', + content: 'png 2388x1668', + }, + { + assetName: 'assets/apple-touch-startup-image-2436x1125.png', + content: 'png 2436x1125', + }, + { + assetName: 'assets/apple-touch-startup-image-2688x1242.png', + content: 'png 2688x1242', + }, + { + assetName: 'assets/apple-touch-startup-image-2732x2048.png', + content: 'png 2732x2048', + }, + { + assetName: 'assets/apple-touch-startup-image-640x1136.png', + content: 'png 640x1136', + }, + { + assetName: 'assets/apple-touch-startup-image-750x1334.png', + content: 'png 750x1334', + }, + { + assetName: 'assets/apple-touch-startup-image-828x1792.png', + content: 'png 828x1792', + }, + { + assetName: 'assets/browserconfig.xml', + content: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + #fff␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + }, + { + assetName: 'assets/coast-228x228.png', + content: 'png 228x228', + }, + { + assetName: 'assets/favicon-16x16.png', + content: 'png 16x16', + }, + { + assetName: 'assets/favicon-32x32.png', + content: 'png 32x32', + }, + { + assetName: 'assets/favicon-48x48.png', + content: 'png 48x48', + }, + { + assetName: 'assets/favicon.ico', + content: 'ico 16x16', + }, + { + assetName: 'assets/firefox_app_128x128.png', + content: 'png 128x128', + }, + { + assetName: 'assets/firefox_app_512x512.png', + content: 'png 512x512', + }, + { + assetName: 'assets/firefox_app_60x60.png', + content: 'png 60x60', + }, + { + assetName: 'assets/manifest.json', + content: `{␊ + "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": "android-chrome-36x36.png",␊ + "sizes": "36x36",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-48x48.png",␊ + "sizes": "48x48",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-72x72.png",␊ + "sizes": "72x72",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-96x96.png",␊ + "sizes": "96x96",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-144x144.png",␊ + "sizes": "144x144",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-192x192.png",␊ + "sizes": "192x192",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-256x256.png",␊ + "sizes": "256x256",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-384x384.png",␊ + "sizes": "384x384",␊ + "type": "image/png"␊ + },␊ + {␊ + "src": "android-chrome-512x512.png",␊ + "sizes": "512x512",␊ + "type": "image/png"␊ + }␊ + ]␊ + }`, + }, + { + assetName: 'assets/manifest.webapp', + content: `{␊ + "version": "1.0",␊ + "name": null,␊ + "description": null,␊ + "icons": {␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ + },␊ + "developer": {␊ + "name": null,␊ + "url": null␊ + }␊ + }`, + }, + { + assetName: 'assets/mstile-144x144.png', + content: 'png 144x144', + }, + { + assetName: 'assets/mstile-150x150.png', + content: 'png 150x150', + }, + { + assetName: 'assets/mstile-310x150.png', + content: 'png 310x150', + }, + { + assetName: 'assets/mstile-310x310.png', + content: 'png 310x310', + }, + { + assetName: 'assets/mstile-70x70.png', + content: 'png 70x70', + }, + { + assetName: 'assets/yandex-browser-50x50.png', + content: 'png 50x50', + }, + { + assetName: 'assets/yandex-browser-manifest.json', + content: `{␊ + "version": "1.0",␊ + "api_version": 1,␊ + "layout": {␊ + "logo": "yandex-browser-50x50.png",␊ + "color": "#fff",␊ + "show_title": true␊ + }␊ + }`, + }, + { + assetName: 'demo/index.html', + content: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + }, + ] diff --git a/test/snapshots/publicpath.test.js.snap b/test/snapshots/publicpath.test.js.snap index 04f788354f1466fb06dc864c8198565db135d321..46895cdc5f2e6181ffeb0c0f55950a1c853ceeef 100644 GIT binary patch literal 5274 zcmZ{jcQh6L|Hs{XjcaCQuk5XBl)XpDxX8?iY?o_Zvs{UgtFp-^7ZI{$m64UoH6trm zU0k=g+5FV^`#qoEIKTH_&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@blL@wXh#6!2$2E|=5*J&=_#;NXao3to9JpfkmMR-Pe8@#e~n%ULz2Xs6Ud1_hG! zs|MuUjCP#9;SQGzS#mVAe@dMu;T0t}8qt6;IelcZpq6vvhtp)_A{-gaw6motWm>6q zg7oGh4qZcswd49|7rm z8hiF}uMwM`Yhmo!pF3;BrsrB1dv^P$Mr?Yng|SUr6g8sjXImM+x;0!YzIL{S@lD&r zHR9`MTNvN8g1)6TXqzUd87BffstIX?b-UB?N*vE264g}S48#79SSeY#D12PWKm zYK`zVW4SRnYRwc#gzeg><{M3KgaF>iB7UZKz2Qk(Qoz%EOFHy>iz*#evT9x_RLjrQ z8b`GE2{}OggzrbaPei=lwXFAziO60h#T$!d`A9_|TO!hAtl6(z#9~2$vFtyS5!g2) zu*+-(`>$*Sc0UR1a+kOMM>=%}iSJ9cgM^&V9IhUZ=##k_wOpz`Qe@?6_lVlHg7I|o zvoUS1dF*g0Q_7MjwNxl8t{zOw2S|16{nO1IBb&$7G#Q`$gx}XOqWuqx+bKmJ*MD}% zW^zaT1tmMG&4SbAlAnx<0n_?<3L{bNmA7fNq&aXGWv@kwGs?a!w14y+Ga8^vDp%pF z>s-$YLD#763NgC|_N)-v4A)g5suSkgg)p8Rv8!61Gs_jHm6GfyuNz!a9V257-q=CB ztAc4cFOQ*fn*!)Pb2Ko6IfTts==vq7Ju$Uh=_6$0YxGr zcQ#rGb2e$caa##`^ZuxLtzt|L3QFs+PdUru_8tXBO;T{VmDB=g&0Q!v-*?rO(MHpw$gv&c!~DCc+-JfcX=V^JpgQ zU``Cd2-_X&s1?a@;?N@VLnE|b1DsR(Y8*UL?* fMjHtkITs^i>iCRyNV9N?=4JdJ=Qk^ov}6DP42-<3 diff --git a/test/snapshots/publicpathLight.test.js.md b/test/snapshots/publicpathLight.test.js.md new file mode 100644 index 00000000..46dfba35 --- /dev/null +++ b/test/snapshots/publicpathLight.test.js.md @@ -0,0 +1,107 @@ +# Snapshot report for `test/publicpathLight.test.js` + +The actual snapshot is saved in `publicpathLight.test.js.snap`. + +Generated by [AVA](https://ava.li). + +## should take the public path into account + +> Snapshot 1 + + [ + 'assets/favicon.png', + 'index.html', + 'main.js', + ] + +> Snapshot 2 + + [ + { + assetName: 'assets/favicon.png', + content: 'png 874x989', + }, + { + assetName: 'index.html', + content: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + }, + ] + +## should work with an empty public path + +> Snapshot 1 + + [ + 'assets/favicon.png', + 'index.html', + 'main.js', + ] + +> Snapshot 2 + + [ + { + assetName: 'assets/favicon.png', + content: 'png 874x989', + }, + { + assetName: 'index.html', + content: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + }, + ] + +## should work with an empty public path and a nested html file + +> Snapshot 1 + + [ + 'assets/favicon.png', + 'demo/index.html', + 'main.js', + ] + +> Snapshot 2 + + [ + { + assetName: 'assets/favicon.png', + content: 'png 874x989', + }, + { + assetName: 'demo/index.html', + content: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + }, + ] diff --git a/test/snapshots/publicpathLight.test.js.snap b/test/snapshots/publicpathLight.test.js.snap new file mode 100644 index 0000000000000000000000000000000000000000..366468cefca3ccf9e0caa3becbdaa65c94074b66 GIT binary patch literal 497 zcmVEgy>r00000000Ba zVPIfjX6RU9^uj{z_LC{Wj7JMqO{JI^KwuIS*8;f$pO}+4Sv=>gzV!F`0|rksCa|ao zGX(!)VPMF6{qw}W7dq;0O-uj0z3&ss1QzXKh2Si9kUi{Ra~U}pSxkVm6%fY)aU~E7 zGqMRXvN{$OB~~&r!dU$L{0xj-42;YSj66UUObj9*CaWN$P-1a$YDuwvT4Gsda(?H8BOm05Wqj^Rg9+QgdvTK(1B-3qn9fQEHm4l72yHQch;F zenDbMhCZejAsWDj>cdR6Ny<;Dga|=cKq;`zxDsC-O%fk}N@{Mt{?JH)wnHWbVumW- nWY|HaWT>Y{tHd{2@(qb}M|{cGN~I)6VR{1qITd{N)&~FpXh+P( literal 0 HcmV?d00001 diff --git a/test/snapshots/publicpathoption.test.js.md b/test/snapshots/publicpathoption.test.js.md index 9922eb10..289462a4 100644 --- a/test/snapshots/publicpathoption.test.js.md +++ b/test/snapshots/publicpathoption.test.js.md @@ -260,10 +260,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -320,47 +320,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/another/path/assets/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/another/path/assets/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/another/path/assets/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/another/path/assets/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/another/path/assets/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/another/path/assets/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/another/path/assets/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/another/path/assets/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/another/path/assets/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -374,9 +374,9 @@ Generated by [AVA](https://ava.li). "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"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -414,7 +414,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/another/path/assets/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ diff --git a/test/snapshots/publicpathoption.test.js.snap b/test/snapshots/publicpathoption.test.js.snap index c3afc6cd79675f8ccda49e398af2391b61fc2652..b67da298a9e2cf6cbeed002f0ac07c4f06247c88 100644 GIT binary patch literal 4119 zcmV+y5a{ngRzVK2&-UHf z7nDT$wm;u}e)s#`ySsPq`TaZ~2!c!a^^cx8{`#r!KmY#Me|z3*A3Xcx27&xtwp!6- zLJ%5-X1dL_%60C5OArR3FG9CL&q8ORJ#f1kx&?X)dJo#wC9W>gQC%gkjsRD|>{4JIz3p=c4(yEJMp+seCyqs6enVTDPIa6D3k^e!t+ zVnpJ_NL=sGWD;X27%D<~mu8a~u~0E)a9CyHFdQuo8&14MbJ(FdWV0#BSCHotv%X|P z&iI0X5UwKr(Yv`dxBiN5L3jlXPOaunp+FJRJGGfR@poCfxziBtvmryM zsl(hUj&q6|&Z(2T6IiFASaHY@r_0nO8Yo5$QMyfCxZ7uqxl6PdGu%Kun#-%v zkkeT?FHPwk*J_TNDmd!lUJV{B1Lq53t}vJNCDY;zdXQjfs2GYEpYL^=zt4g{dWUGl z(3I;2P-tci8a9mE-((+VID7UnD(%-hY=3|7e^){{b8R zxOCj(v)lUZhkmC>Iv~CK9_#LS?u(=Y(7T^w-5vLRkvsr;_r03?dewb0Cm+sBIdss| z$(g}oI;D|5mQ2WEzJObTJ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C4Vuk4NHm&CqpyzXXUja$eIL}l7d8W>WF~E||>3t2PVzx~n5)m8)nq33tOwQ9>1B0`p4VV*2 zy{`dFQ)jCnmY5ZfLQ4{76B8)^EPtI(uy=IkIyFB+u-Q?vb){wOi~Hd|{;;`2dd^3Q>`BN|r2UO6 mqC4re(pW0)hC@bn#_*^*Hmx1f7*5d)j{gG|B+#7iWB>qpalM5A diff --git a/test/snapshots/unprefixed.test.js.md b/test/snapshots/unprefixed.test.js.md index fb6b7fa0..7487c8e2 100644 --- a/test/snapshots/unprefixed.test.js.md +++ b/test/snapshots/unprefixed.test.js.md @@ -260,10 +260,10 @@ Generated by [AVA](https://ava.li). ␊ - ␊ - ␊ - ␊ - ␊ + ␊ + ␊ + ␊ + #fff␊ ␊ ␊ @@ -516,47 +516,47 @@ Generated by [AVA](https://ava.li). "theme_color": "#fff",␊ "icons": [␊ {␊ - "src": "/android-chrome-36x36.png",␊ + "src": "android-chrome-36x36.png",␊ "sizes": "36x36",␊ "type": "image/png"␊ },␊ {␊ - "src": "/android-chrome-48x48.png",␊ + "src": "android-chrome-48x48.png",␊ "sizes": "48x48",␊ "type": "image/png"␊ },␊ {␊ - "src": "/android-chrome-72x72.png",␊ + "src": "android-chrome-72x72.png",␊ "sizes": "72x72",␊ "type": "image/png"␊ },␊ {␊ - "src": "/android-chrome-96x96.png",␊ + "src": "android-chrome-96x96.png",␊ "sizes": "96x96",␊ "type": "image/png"␊ },␊ {␊ - "src": "/android-chrome-144x144.png",␊ + "src": "android-chrome-144x144.png",␊ "sizes": "144x144",␊ "type": "image/png"␊ },␊ {␊ - "src": "/android-chrome-192x192.png",␊ + "src": "android-chrome-192x192.png",␊ "sizes": "192x192",␊ "type": "image/png"␊ },␊ {␊ - "src": "/android-chrome-256x256.png",␊ + "src": "android-chrome-256x256.png",␊ "sizes": "256x256",␊ "type": "image/png"␊ },␊ {␊ - "src": "/android-chrome-384x384.png",␊ + "src": "android-chrome-384x384.png",␊ "sizes": "384x384",␊ "type": "image/png"␊ },␊ {␊ - "src": "/android-chrome-512x512.png",␊ + "src": "android-chrome-512x512.png",␊ "sizes": "512x512",␊ "type": "image/png"␊ }␊ @@ -570,9 +570,9 @@ Generated by [AVA](https://ava.li). "name": null,␊ "description": null,␊ "icons": {␊ - "60": "/firefox_app_60x60.png",␊ - "128": "/firefox_app_128x128.png",␊ - "512": "/firefox_app_512x512.png"␊ + "60": "firefox_app_60x60.png",␊ + "128": "firefox_app_128x128.png",␊ + "512": "firefox_app_512x512.png"␊ },␊ "developer": {␊ "name": null,␊ @@ -610,7 +610,7 @@ Generated by [AVA](https://ava.li). "version": "1.0",␊ "api_version": 1,␊ "layout": {␊ - "logo": "/yandex-browser-50x50.png",␊ + "logo": "yandex-browser-50x50.png",␊ "color": "#fff",␊ "show_title": true␊ }␊ diff --git a/test/snapshots/unprefixed.test.js.snap b/test/snapshots/unprefixed.test.js.snap index d4692108b7accf17fe6632c1888f706f537aad43..70698daabe9225a0003343fee607304074f61c54 100644 GIT binary patch literal 4067 zcmV<94;=78RzVgw3H&C5dw+6=!2>%Ewn-iRlG_Cv_PTX%JjFJ4nkKz4?us1n(Gv02s#9P9eNUa3tB&4QT9Po&|T1< zp#MR^1&We{?txx_+7>Fxr=Y8#htwJibzT?HM7-iP`cz(99Fe}$Ar zMcDxDg<{ZA=zGxbp!Xp6VnrE-J_{X&ZiOC(o`>pC4_lzqpe(dpUD&EFI4P6Src~8( z&CSh<+Nh{|6m*_ zw68Z0vGkG(wAdn=D$sps6MeQCSz3V(hVl?gH&>v;_}pRJ=WZ#UL!Ryn<@;<$ZY|FS zd-FltahH{6g)_dq0vpVSZ0CH1#kvGGozWwyL^_q#qin=VD`Ev7!BVR%Y70wcb6O@h znfAmI+Bmwa*VmW#1?*jGwH3IzQXqO{Fkq{oHkpLJfG_X!_1b#f8tK4b*cR9>^GW^w zKt9xG`=lK*3Hwk&U$1?9SSu44L|^iG?Tu%hRA4ZSy0Q20PU%3uy>7Z>>L!HYI_$H> zxg-*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#>n+z$^H}@x($)2BrtL-VeV@zUG9{1zgOfR?Pnv~P$ zma*Q(GUXs2$g8cRjb$nlPM@2`IvZAXqx;5so6FYo zoJKc}b&qAHoaHpSbF8NVfDI-%EuJSXKZ@e_(hlkc|WaAk?}IFRmw6} z`{kJOp$B`-tn%P!CO)li(k<+wnP)YwLADPM}$=2RI6PXkVuW9KapAL+wvB~jVW-1*Y(G#oS=*XgbX~wnE4l+CP z*z{T2_m>+d%#+W>Xdt_<`cY?{By)zabYFQpnPy}&H_@)xB^9Wg#})(WIdF#pl@p<2 zAU&JvP@vKm;wl89`7zZW%MA-OV&zhG8%ZG2myYok#XNzZOipT34ju8ihVqj!cU+(&z& zVyTnSRF4l=VIE>?yiAOA4v(>2+H9N%e6mAYGLzME<&VLAcx=%ZS+arnN%v>PAAEEA z+mjW4F;3}iJ^QJvW)maj?LOm%WjZreD9;d5@JpwcU0cm*DBfP^H&2I0^h$sMcOf^W P>67aJ6ZV-a?_2-?Ay&2M diff --git a/test/unprefixed.test.js b/test/unprefixed.test.js index a57e898d..db365b1b 100644 --- a/test/unprefixed.test.js +++ b/test/unprefixed.test.js @@ -13,7 +13,8 @@ test('should correctly handle an empty prefix', async t => { const compilationStats = await generate({ context: t.context.root, output: { - path: dist + path: dist, + publicPath: '/' }, plugins: [ new HtmlWebpackPlugin(), diff --git a/test/util.js b/test/util.js index aaea2e6a..3e8e9e0b 100644 --- a/test/util.js +++ b/test/util.js @@ -21,9 +21,7 @@ module.exports.compiler = config => { { entry: path.resolve(fixtures, 'entry.js'), plugins: [], - output: { - publicPath: '/' - }, + output: {}, infrastructureLogging: { level: 'info' } diff --git a/test/zero-config.test.js b/test/zero-config.test.js index c56dfd29..7ce48895 100644 --- a/test/zero-config.test.js +++ b/test/zero-config.test.js @@ -18,7 +18,8 @@ test('should work without configuration', async t => { mode: 'development', context: t.context.root, output: { - path: dist + path: dist, + publicPath: '/' }, plugins: [new HtmlWebpackPlugin(), new FaviconsWebpackPlugin()] });