Skip to content

Angular output path changed #42

Description

@Til7701

Since Angular version 17 the output path changed by default. See angular/angular-cli#26304

Files are no longer put in target/classes/static when the output path is set to it. Instead they are in target/classes/static/browser. Thus Spring Boot does not serve the files correctly.

In the issue mentioned above there is a workaround. In angular.json you can modify the outputPath like this:

"architect": {
  "build": {
    "builder": "@angular-devkit/build-angular:application",
    "options": {
      "outputPath": {
        "base": "target/classes/static",
        "browser": ""
      },
      "index": "src/index.html",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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