Skip to content

Commit b675e7e

Browse files
author
Pavel Zhytko
committed
remove clean on build - we need to preserve some files/dirs there
1 parent 31f3df7 commit b675e7e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@karambasecurity/react-scripts",
3-
"version": "1.0.17-kar.10",
3+
"version": "1.0.17-kar.11",
44
"description": "Configuration and scripts for Create React App.",
55
"repository": "Pavek/create-react-app",
66
"license": "MIT",

packages/react-scripts/scripts/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ measureFileSizesBeforeBuild(paths.appBuild)
5454
.then(previousFileSizes => {
5555
// Remove all content but keep the directory so that
5656
// if you're in it, you don't end up in Trash
57-
fs.emptyDirSync(paths.appBuild);
57+
//fs.emptyDirSync(paths.appBuild);
58+
5859
// Merge with the public folder
5960
copyPublicFolder();
6061
// Start the webpack build

0 commit comments

Comments
 (0)