There was an error while loading. Please reload this page.
1 parent 895cfaf commit 9b6e87cCopy full SHA for 9b6e87c
scripts/build.js
@@ -14,7 +14,9 @@ var webpack = require('webpack');
14
var config = require('../config/webpack.config.prod');
15
var paths = require('../config/paths');
16
17
-rimrafSync(paths.appBuild);
+// Remove all content but keep the directory so that
18
+// if you're in it, you don't end up in Trash
19
+rimrafSync(paths.appBuild + '/*');
20
21
webpack(config).run(function(err, stats) {
22
if (err) {
0 commit comments