diff --git a/lib/bundler.js b/lib/bundler.js index 4cdb99a..1ebb323 100644 --- a/lib/bundler.js +++ b/lib/bundler.js @@ -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);