Skip to content

Change default dist folder to "browser" #190

Description

@fmalcher

With the new application builder (introduced in Angular 17), the build artifacts are placed in a "browser" subfolder. This is why we made the "dir" option for the deployment builder.
When using the application builder, it is mandatory to set "dir".

As soon as the application builder is the only officially supported builder (i.e. as soon as the Webpack-based builder is deprecated), we should change the default path so that the application builder works out of the box without "dir".

Activity

  1. JohannesHoppe commented on May 28, 2024

    @JohannesHoppe
    Member

    If I remember correctly, this is only an issue for the standalone version. When using ng deploy the correct folder is chosen by default.

  2. JohannesHoppe commented on Dec 30, 2025

    @JohannesHoppe
    Member

    With ng deploy this has always worked - we read outputPath from angular.json and build the correct path. With #200 we improved this further to handle all Angular versions from 18-21 correctly. For the standalone CLI we'd need some kind of discovery (parsing angular.json ourselves), and honestly if you're using the CLI directly you'll probably need to fiddle with --dir anyway depending on your setup. I'd say wontfix for the standalone CLI.

  3. JohannesHoppe commented on Jan 12, 2026

    @JohannesHoppe
    Member

    Update: This is now fixed in v3.0.0 for ng deploy! 🎉

    The builder automatically appends /browser to the output path, so Angular 17+ projects work out of the box without setting --dir.

    For the standalone CLI version (npx angular-cli-ghpages), this remains a wontfix – you'll need to specify the path manually.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions