Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15483 from storybookjs/fix/15227-storybook-hangs-…
…on-angular Webpack5: Quit process after finishing a static build
- Loading branch information
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
import { buildStatic } from '@storybook/core/server'; | ||
import { logger } from '@storybook/node-logger'; | ||
import options from './options'; | ||
|
||
buildStatic(options); | ||
async function build() { | ||
try { | ||
await buildStatic(options); | ||
} catch (error) { | ||
logger.error(error); | ||
} | ||
} | ||
|
||
build(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters