remove the need the need to --copy-files with babel by moving the favicon

This commit is contained in:
Norbert de Langen 2022-01-25 19:20:00 +01:00
parent db69c741f9
commit a51da8d0b4
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762
4 changed files with 3 additions and 4 deletions

View File

@ -31,8 +31,7 @@
},
"files": [
"dist/**/*",
"dll/**/*",
"types/**/*",
"public/**/*",
"*.js",
"*.d.ts"
],

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -48,7 +48,7 @@ export async function buildStaticStandalone(options: CLIOptions & LoadOptions &
options.configDir = path.resolve(options.configDir);
/* eslint-enable no-param-reassign */
const defaultFavIcon = require.resolve('./public/favicon.ico');
const defaultFavIcon = require.resolve('@storybook/core-server/public/favicon.ico');
logger.info(chalk`=> Cleaning outputDir: {cyan ${options.outputDir}}`);
if (options.outputDir === '/') {

View File

@ -9,7 +9,7 @@ import favicon from 'serve-favicon';
import dedent from 'ts-dedent';
const defaultFavIcon = require.resolve('../public/favicon.ico');
const defaultFavIcon = require.resolve('@storybook/core-server/public/favicon.ico');
export async function useStatics(router: any, options: Options) {
let hasCustomFavicon = false;