Angular 17 - ng build - dist folder generation

82 Views Asked by At

I have developed a project using the Angular 17 tool. This was creating the two sets of folders for the server and browser during the creation(build) of the dist folder. That was not the case with the previous edition.

In order to use this app as a component in another app, I must obtain the bundle script file. How can I adjust the settings to create the same dist folder as the prior version, then?

1

There are 1 best solutions below

0
ekonovich On

Your application seems to be configured as server-side rendering. In this case, the "ng build" command produces two folders (browser-server)

You can create a new clientside application and import your files to clear project or > How to remove Angular Universal on angular project