jrburke/r.js — Issue #73: feature request: delete previous build directory
Author: geddesign
Created: 2012-01-06 22:56:31+00:00
State: open

Hey James. It would be nice if `r.js` could (optionally?) delete the previous build directory before writing to it. If I remember right sometimes things can get messed up if you forget to delete it first. I do this in my custom build before calling r.js like so:

```javascript
var wrench = require('wrench');
wrench.rmdirSyncRecursive('frontend-build);
```

but it seems like something r.js should/could probably handle easily. Thoughts?