Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write to temp outfile until success, fixes #899
Write browserify command output to a temporary file, overwriting the target file atomically upon success (and simply cleaning up the tempfile on error). This has two benefits: * user won't be left with an empty file if compilation fails (which can break toolchains that rely on destination files/timestamps to indicate build status, Make or django-pipeline for just two examples) * output file can never end up in a half-written state during even a successful compilation
- Loading branch information