Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 37ff09a

Browse files
committed
docs(cli): add explanation of the skip-cleanup command
1 parent c4465e5 commit 37ff09a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ If those defaults do not work for you, the script accepts some arguments:
9797
- `--react-scripts-version`: expects the `react-scripts` version you are using in your project i.e `2.0.3`. If not given it will be implied from your `node_modules` and if it cannot be implied the version `2.1.2` will be the default. Consider setting it if you **ejected** and are not using the latest `react-scripts` version.
9898
- `-p|--public-path`: expects a relative URL where `/` is the root. If you serve your files using an external webserver this argument is to match with your web server configuration. More information can be found in [webpack configuration guide](https://webpack.js.org/configuration/output/#output-publicpath).
9999
- default: "".
100+
- `--skip-cleanup`: Skips the initial cleanup of the build folder. Could be beneficial when the cleanup is handled beforehand and some other files are moved to the build folder before running this script.
100101
- `-v|--verbose`: display webpack build output.
101102

102103
# Contributions

utils/cliHandler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@ module.exports = meow(
2424
2525
--react-scripts-version Version of the react-scripts package used in your project i.e 2.0.3. If not given it will be implied from your package.json and if it cannot be implied the major version 2 will be the default.
2626
27+
--skip-cleanup Skips the initial cleanup of the build folder. Could be beneficial when the cleanup is handled beforehand and some other files are moved to the build folder before running this script.
28+
2729
-v, --verbose
2830
2931
Examples
3032
$ cra-build-watch -b dist/ -p /assets
3133
$ cra-build-watch --chunk-filename './js/[chunkhash].[name]' -o './js/myapp'
3234
$ cra-build-watch -b dist/ -p /assets --chunk-filename './js/[name]/[hash].js' -v
35+
$ cra-build-watch --skip-cleanup
3336
`,
3437
{
3538
flags: {

0 commit comments

Comments
 (0)