fix(app/angular): add missing architect.build properties

previously angular-devkit has thrown an error if they were missing

fixes #9319
This commit is contained in:
Kai Röder 2020-01-11 10:03:58 +01:00
parent 7980eb656c
commit f419b7fa21

View File

@ -108,6 +108,9 @@ export function getAngularCliWebpackConfigOptions(dirToSearch: Path) {
const tsConfigPath = path.resolve(dirToSearch, projectOptions.tsConfig) as Path;
const tsConfig = getTsConfigOptions(tsConfigPath);
const budgets = projectOptions.budgets || [];
const scripts = projectOptions.scripts || [];
const outputPath = projectOptions.outputPath || 'dist/storybook-angular';
const styles = projectOptions.styles || [];
return {
root: dirToSearch,
@ -121,6 +124,9 @@ export function getAngularCliWebpackConfigOptions(dirToSearch: Path) {
...projectOptions,
assets: normalizedAssets,
budgets,
scripts,
styles,
outputPath,
},
};
}