Skip to content

Commit

Permalink
fix(build): never delete output path
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd committed Jan 24, 2019
1 parent 0c9b257 commit b614db9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builders/cordova-build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export class CordovaBuildBuilder implements Builder<CordovaBuildBuilderSchema> {
// requirement of Cordova.
browserOptions.outputPath = join(cordovaBasePath, normalize('www'));

// Cordova CLI will error if `www` is missing. The Angular CLI deletes it
// by default. Let's keep it around.
browserOptions.deleteOutputPath = false;

if (options.cordovaAssets) {
const platformWWWPath = join(cordovaBasePath, normalize(`platforms/${options.platform}/platform_www`));

Expand Down

0 comments on commit b614db9

Please sign in to comment.