Skip to content

Copy assets with @angular-devkit/build-angular:server #24203

Closed
@crysislinux

Description

@crysislinux

Command

build

Description

@angular-devkit/build-angular:browser has the ability to copy assets with the assets array in the options.

But @angular-devkit/build-angular:server doesn't have the ability.

My use case is that we build the app with angular universal support, and we want to deploy both the client and server files together. We have some custom server files to be copied over (when building and serving). But since @angular-devkit/build-angular:server doesn't support that, we have to use some workarounds. The options we have currently are:

  1. use a custom script to do the job
  2. separate the server side rendering from the API server, so that we can use a different stack for the server code.

Describe the solution you'd like

Add the assets support to @angular-devkit/build-angular:server.

Describe alternatives you've considered

  1. use a custom script to do the job
  2. separate the server-side rendering from the API server, so that we can use a different stack for the server code. but we don't want to separate them at the beginning since it makes the deployment more complex.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions