Skip to content

Commit

Permalink
remove clean on build - we need to preserve some files/dirs there
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Zhytko committed Jan 16, 2018
1 parent 31f3df7 commit b675e7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@karambasecurity/react-scripts",
"version": "1.0.17-kar.10",
"version": "1.0.17-kar.11",
"description": "Configuration and scripts for Create React App.",
"repository": "Pavek/create-react-app",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-scripts/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ measureFileSizesBeforeBuild(paths.appBuild)
.then(previousFileSizes => {
// Remove all content but keep the directory so that
// if you're in it, you don't end up in Trash
fs.emptyDirSync(paths.appBuild);
//fs.emptyDirSync(paths.appBuild);

// Merge with the public folder
copyPublicFolder();
// Start the webpack build
Expand Down

0 comments on commit b675e7e

Please sign in to comment.