New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serving static files via Storybook Configuration object #19079
Comments
Hi,
More informationThis is the Storybook config in
The
Result: into Strangely, all files are correctly served with
except on Windows system where the files from I tested the I will give a try into a PR if I can. |
I'm also suffering from this on a windows system. Is there a workaround? |
I faced a similar issue recently, but it turned out not to be platform-related. In our application, we needed to serve the main assets with the ability to replace some files depending on the environment settings (brand). When using Express to serve multiple folders under one name, it serves the first file it finds. In my case, it helped to first define the assets that override, and then the main ones.
However, during the build process, the order will be reversed, so it's worth keeping that in mind. |
Describe the bug
After building the Storybook application, I cannot find statics assets in the build
To Reproduce
Here is my main.js file with multiple staticDirs :
During the build, I can see :
So he is copying thoses files, but I only retrieve assets of the first staticDirs (global-assets\src\lib\assets) in my build. But not those from icons-angular\src\inline-svg.
"@angular/cli": "14.2.1",
"@nrwl/storybook": "14.5.10",
"@nrwl/workspace": "14.5.10",
"@storybook/addon-actions": "6.5.10",
"@storybook/addon-essentials": "6.5.10",
"@storybook/angular": "6.5.10",
"@storybook/builder-webpack5": "6.5.10",
"@storybook/core-server": "6.5.10",
"@storybook/manager-webpack5": "6.5.10",
The text was updated successfully, but these errors were encountered: