Skip to content

Commit

Permalink
Merge pull request #28144 from storybookjs/valentin/angular-output-pa…
Browse files Browse the repository at this point in the history
…th-object

Angular: Allow outputPath object syntax
  • Loading branch information
shilman authored Jun 8, 2024
2 parents dfe9d46 + 88097b5 commit 60c7320
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/frameworks/angular/src/server/angular-cli-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ exports.getWebpackConfig = async (baseConfig, { builderOptions, builderContext }
styles: builderOptions.styles
?.map((style) => (typeof style === 'string' ? style : style.input))
.filter((style) => typeof style === 'string' || style.inject !== false),
outputPath:
typeof builderOptions.outputPath === 'string'
? builderOptions.outputPath
: builderOptions.outputPath?.base,

// Fixed options
optimization: false,
Expand Down

0 comments on commit 60c7320

Please sign in to comment.