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
1 parent 563897f commit 2ec2771
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 @@ -14,6 +14,7 @@ import {
Builder,
StorybookConfig,
cache,
logConfig,
} from '@storybook/core-common';

import { getProdCli } from './cli';
Expand Down Expand Up @@ -82,6 +83,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 2ec2771

Please sign in to comment.