Skip to content

Commit b614db9

Browse files
committed
fix(build): never delete output path
fixes #51 fixes ionic-team/ionic-cli#3823
1 parent 0c9b257 commit b614db9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builders/cordova-build/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ export class CordovaBuildBuilder implements Builder<CordovaBuildBuilderSchema> {
3737
// requirement of Cordova.
3838
browserOptions.outputPath = join(cordovaBasePath, normalize('www'));
3939

40+
// Cordova CLI will error if `www` is missing. The Angular CLI deletes it
41+
// by default. Let's keep it around.
42+
browserOptions.deleteOutputPath = false;
43+
4044
if (options.cordovaAssets) {
4145
const platformWWWPath = join(cordovaBasePath, normalize(`platforms/${options.platform}/platform_www`));
4246

0 commit comments

Comments
 (0)