Skip to content

Commit

Permalink
overwrite existing file if writeRuntimeConfig=false
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Aug 9, 2018
1 parent ef3d369 commit ab62d89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ function bundle(options) {
if (config.writeRuntimeConfig) {
// Start composing the bundle, override if already exists
Fs.writeFileSync(destinationFile, runtimeconfig);
}
} else {
Fs.writeFileSync(destinationFile, '');
}

// Load essential meta-data regards our packages
var buildPath = Path.resolve(tempDir, "bundle/programs/" + config.arch);
Expand Down

0 comments on commit ab62d89

Please sign in to comment.