Skip to content

How to use the application builder with ngssc? #87

Closed
@sandrooco

Description

@sandrooco

I updated my project to Angular 17 and wanted to try out the vite/application builder.
When building the project, there's a new structure in dist than before.

New structure

dist
└── my-cool-projectname
    ├── 3rdpartylicenses.txt
    ├── browser
    │   ├── favicon.ico
    │   ├── index.html
    │   ├── main-HXV5IAUK.js
    │   ├── polyfills-F4P3OIQ6.js
    │   └── styles-RDUYNHTE.css
    └── ngssc.json

Old structure

dist
└── my-cool-projectname
    ├── favicon.ico
    ├── index.html
    ├── main.js
    ├── main.js.map
    ├── polyfills.js
    ├── polyfills.js.map
    ├── runtime.js
    ├── runtime.js.map
    ├── styles.css
    ├── styles.css.map
    ├── vendor.js
    └── vendor.js.map

So I guess that I need to change something in Dockerfile. Simply changing COPY dist/my-cool-projectname . to COPY dist/my-cool-projectname/browser . doesn't work.
I suspect that this has something to do with SSR - do you have any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions