ng build with deleteOutputPath not working
🐞 bug report
Affected Package
The issue is caused by package @angular/cli 10.1.7
Is this a regression?
Yes, the previous version in which this bug was not present was: 9.1.0
Description
Running ng build --deleteOutputPath=false causes the following error:
Unknown option: '--deleteOutputPath'
🔬 Minimal Reproduction
Create any new Angular 10 web application.
Run ng build --deleteOutputPath=false
🌍 Your Environment
Angular Version:
Angular CLI: 10.1.7
Node: 12.16.3
OS: win32 x64
Angular: 10.1.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, upgrade
Ivy Workspace:
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.1001.7
@angular-devkit/build-angular 0.1001.7
@angular-devkit/build-ng-packagr 0.1001.7
@angular-devkit/core 10.1.7
@angular-devkit/schematics 10.1.7
@angular/cli 10.1.7
@schematics/angular 10.1.7
@schematics/update 0.1001.7
ng-packagr 10.1.2
rxjs 6.5.5
typescript 4.0.5
webpack 4.42.0
Can you please share the build section of the angular.json? Are you using a 3rd party builder?
@alan-agius4 I am using NX with custom webpack.config. Here is my build section from angular.json:
"build": {
"builder": "@nrwl/web:build",
"options": {
"baseHref": ".",
"buildLibsFromSource": true,
"outputPath": "dist/apps/flww",
"index": "apps/flww/src/index.html",
"main": "apps/flww/src/main.ts",
"tsConfig": "apps/flww/tsconfig.app.json",
"webpackConfig": "apps/flww/webpack.dev",
"progress": true,
"scripts": [],
"styles": [],
"assets": []
},
@KirillMetrik,
This issue is not caused by the official Angular CLI builder. Kindly open an issue with NX.
Thanks
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.