Skip to content

staticDirs are not copied in the same destination depending on the build target #1984

@JeanRemiDelteil

Description

@JeanRemiDelteil

Please provide the environment you discovered this bug in.

In an Angular repository, and following your documentation, add configuration for:

  • @analogjs/storybook-angular:start-storybook
  • @analogjs/storybook-angular:build-storybook

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-storybook
This staticDirs config is necessary:

  staticDirs: [
    { from: '../fontface/fonts', to: 'fonts' },
  ],

When using @analogjs/storybook-angular:build-storybook
This staticDirs config is necessary:

  staticDirs: [
    { from: '../fontface/fonts', to: 'assets/fonts' }, // <-- we need to add "assets/" !!
  ],

Please provide the exception or error you saw

We should be able to see the same config in both build target.

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions