staticDirs are not copied in the same destination depending on the build target #1997
Replies: 4 comments
-
|
I tested against this repo with the same configuration and couldn't reproduce the issue. https://github.com/brandonroberts/angular-vite-storybook We're using the same builders that Storybook uses underneath. |
Beta Was this translation helpful? Give feedback.
-
|
@brandonroberts I managed to trim down to a small (if not minimal) reproduction repository. You should have received an invitation to see it. The issue is probably caused by the folder hierarchy: Storybook is living as a sibling of the other Angular projects. On another note, I indeed saw that the package is calling the Storybook builders. It's too bad that it causes webpack to still be installed (but not used I suppose ?). |
Beta Was this translation helpful? Give feedback.
-
|
That's correct. Installed but not used. We're re-using the |
Beta Was this translation helpful? Give feedback.
-
|
I've dug into this and it looks like a bug on the Storybook side. I suggest filing an issue there with the reproduction. Converting to a discussion as there's a workaround. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Please provide the environment you discovered this bug in.
In an Angular repository, and following your documentation, add configuration for:
Import some fonts in your project, as static assets with staticDirs.
Which area/package is the issue in?
storybook-angular
Description
When using
@analogjs/storybook-angular:start-storybookThis
staticDirsconfig is necessary:When using
@analogjs/storybook-angular:build-storybookThis
staticDirsconfig is necessary:Please provide the exception or error you saw
Other information
No response
I would be willing to submit a PR to fix this issue
Beta Was this translation helpful? Give feedback.
All reactions