Skip to content

Commit

Permalink
fix(app/angular): add missing architect.build properties
Browse files Browse the repository at this point in the history
previously angular-devkit has thrown an error if they were missing

fixes #9319
  • Loading branch information
kroeder committed Jan 11, 2020
1 parent 7980eb6 commit f419b7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/angular/src/server/angular-cli_config.ts
Expand Up @@ -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,
Expand All @@ -121,6 +124,9 @@ export function getAngularCliWebpackConfigOptions(dirToSearch: Path) {
...projectOptions,
assets: normalizedAssets,
budgets,
scripts,
styles,
outputPath,
},
};
}
Expand Down

0 comments on commit f419b7f

Please sign in to comment.