diff --git a/angular.json b/angular.json index e6f2225..943f48d 100644 --- a/angular.json +++ b/angular.json @@ -86,6 +86,10 @@ ], "outputHashing": "all" }, + "browser-only": { + "server": false, + "ssr": false + }, "development": { "optimization": false, "extractLicenses": false, diff --git a/azure-pipelines/igniteui-angular-grid-examples.yml b/azure-pipelines/igniteui-angular-grid-examples.yml index 56cc049..c1cea84 100644 --- a/azure-pipelines/igniteui-angular-grid-examples.yml +++ b/azure-pipelines/igniteui-angular-grid-examples.yml @@ -127,12 +127,25 @@ stages: npx --userconfig=$(Build.SourcesDirectory)/.npmrc --legacy-peer-deps ng g @igniteui/angular-schematics:upgrade-packages - task: Npm@1 - displayName: 'npm run build:ci' + displayName: 'npm run build:ci (browser only)' inputs: command: custom workingDir: '$(Build.SourcesDirectory)' verbose: ${{ parameters.isVerbose }} - customCommand: 'run build:ci' + # IIS serves the static browser output only, so skip the server bundle and + # route prerendering. `production` must be listed explicitly - naming a + # configuration replaces the default one, which would drop output hashing. + customCommand: 'run build:ci -- --configuration production,browser-only' + env: + # The build exhausts the ~7.9GB Microsoft-hosted agent ("Free memory is lower + # than 5%") and intermittently stalls until Azure reports "We stopped hearing + # from agent" - see #171. esbuild runs as a separate Go process, so Node-side + # settings (worker count, heap size) do not bound its memory - GOMEMLIMIT/GOGC + # do. These values are reused from another Ignite UI pipeline where they keep + # a similar Angular build stable; they are not yet tuned for this agent size. + GOMEMLIMIT: '6GiB' + GOGC: '50' + NODE_OPTIONS: '--max_old_space_size=4096' - task: PublishPipelineArtifact@1 diff --git a/ignite-ui-cli.json b/ignite-ui-cli.json index b1a4e62..4e8f028 100644 --- a/ignite-ui-cli.json +++ b/ignite-ui-cli.json @@ -4,7 +4,7 @@ "defaultPort": 4200, "framework": "angular", "projectType": "igx-ts", - "projectTemplate": "ng-cli", + "projectTemplate": "base", "theme": "Custom", "isBundle": false, "bundleFilePath": "",