Bugfix/missing assets in Storybook (#4324)

* fix(sb): add staticDirs config

* fix(sb): improve config type safety

* Update changelog
This commit is contained in:
Ken Tandrian 2025-02-16 14:47:44 +07:00 committed by GitHub
parent 57673046e7
commit 02a4e27083
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Fixed
- Added missing assets in _Storybook_ setup
## 2.139.1 - 2025-02-15
### Added

View File

@ -1,9 +1,16 @@
/** @type {import('@storybook/angular').StorybookConfig} */
const config = {
addons: ['@storybook/addon-essentials'],
framework: {
name: '@storybook/angular',
options: {}
},
staticDirs: [
{
from: '../../../apps/client/src/assets',
to: '/assets'
}
],
stories: ['../**/*.stories.@(js|jsx|ts|tsx|mdx)']
};