fix(storybook): ensure watch is passed to angular storybook options (#8800)

This commit is contained in:
Colum Ferry 2022-02-01 11:42:17 +00:00 committed by GitHub
parent 5f3ca7892d
commit 19f8813450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,6 +262,11 @@ export function resolveCommonStorybookOptionMapper(
}, },
logger: angularDevkitCompatibleLogger, logger: angularDevkitCompatibleLogger,
}; };
// Add watch to angularBuilderOptions for Storybook to merge configs correctly
storybookOptions.angularBuilderOptions = {
watch: true,
};
} else { } else {
// keep the backwards compatibility // keep the backwards compatibility
setStorybookAppProject(context, builderOptions.projectBuildConfig); setStorybookAppProject(context, builderOptions.projectBuildConfig);