Commit 9b6e87c6 authored by Dan Abramov's avatar Dan Abramov
Browse files

Remove build directory without ending up in trash

This is frustrating with shells like `fish` that track directory moves
parent 895cfaf9
Showing with 3 additions and 1 deletion
+3 -1
...@@ -14,7 +14,9 @@ var webpack = require('webpack'); ...@@ -14,7 +14,9 @@ var webpack = require('webpack');
var config = require('../config/webpack.config.prod'); var config = require('../config/webpack.config.prod');
var paths = require('../config/paths'); var paths = require('../config/paths');
rimrafSync(paths.appBuild); // Remove all content but keep the directory so that
// if you're in it, you don't end up in Trash
rimrafSync(paths.appBuild + '/*');
webpack(config).run(function(err, stats) { webpack(config).run(function(err, stats) {
if (err) { if (err) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment