Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getAngularCliParts(cliWebpackConfigOptions: any) {
// eslint-disable-next-line global-require, import/no-extraneous-dependencies
const ngCliConfigFactory = require('@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs');
try {
return {
cliCommonConfig: ngCliConfigFactory.getCommonConfig(cliWebpackConfigOptions),
cliStyleConfig: ngCliConfigFactory.getStylesConfig(cliWebpackConfigOptions),
};
} catch (e) {
return null;
}
}
wco => [
getCommonConfig(wco),
getServerConfig(wco),
getStylesConfig(wco),
getStatsConfig(wco),
getCompilerConfig(wco),
],
);
export function getAngularCliParts(cliWebpackConfigOptions: any) {
try {
return {
cliCommonConfig: getCommonConfig(cliWebpackConfigOptions),
cliStyleConfig: getStylesConfig(cliWebpackConfigOptions),
};
} catch (e) {
return null;
}
}
wco => [
getCommonConfig(wco),
getServerConfig(wco),
getStylesConfig(wco),
getStatsConfig(wco),
getAotConfig(wco),
],
);