Skip to content

Commit

Permalink
Merge pull request #15674 from vishmimoney/vishmimoney/fix/debug-wepb…
Browse files Browse the repository at this point in the history
…ack-15600

CLI: Fix debug webpack output in static build
  • Loading branch information
shilman committed Jul 26, 2021
2 parents f15f7e0 + bd4fb00 commit a435199
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/core-server/src/build-static.ts
Expand Up @@ -15,6 +15,7 @@ import {
StorybookConfig,
cache,
normalizeStories,
logConfig,
} from '@storybook/core-common';

import { getProdCli } from './cli';
Expand Down Expand Up @@ -86,6 +87,11 @@ export async function buildStaticStandalone(options: CLIOptions & LoadOptions &
features,
};

if (options.debugWebpack) {
logConfig('Preview webpack config', await previewBuilder.getConfig(fullOptions));
logConfig('Manager webpack config', await managerBuilder.getConfig(fullOptions));
}

const core = await presets.apply<{ builder?: string }>('core');

const { getPrebuiltDir } =
Expand Down

0 comments on commit a435199

Please sign in to comment.