mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:11:13 +08:00
17 lines
535 B
TypeScript
17 lines
535 B
TypeScript
import { Configuration } from 'webpack';
|
|
import { Path } from '@angular-devkit/core';
|
|
import { logger } from '@storybook/node-logger';
|
|
|
|
import {
|
|
getAngularCliWebpackConfigOptions,
|
|
applyAngularCliWebpackConfig,
|
|
} from './angular-cli_config';
|
|
|
|
export function webpackFinal(config: Configuration) {
|
|
const cwd = process.cwd() as Path;
|
|
const cliWebpackConfigOptions = getAngularCliWebpackConfigOptions(cwd);
|
|
logger.info('=> Loading angular-cli config.');
|
|
|
|
return applyAngularCliWebpackConfig(config, cliWebpackConfigOptions);
|
|
}
|