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

Commit

Permalink
feat: bump default react-scripts version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nargonath committed Jan 13, 2019
1 parent 4ff79f1 commit 52f2532
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ If those defaults do not work for you, the script accepts some arguments:

* `-b|--build-path`: expects either an absolute or relative path. If a relative path is given it will be prefixed by your project root path.
* default: `yourProjectRoot/build`.
* `--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.0.4` will be the default. Consider setting it if you ejected.
* `--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.
* `-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).
* default: "".
* `-v|--verbose`: display webpack build output.
4 changes: 2 additions & 2 deletions utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const path = require('path');

const DEFAULT_VERSION = {
major: 2,
minor: 0,
patch: 4,
minor: 1,
patch: 2,
};

exports.isEjected = fs.pathExistsSync(path.join(process.cwd(), 'config/paths.js'));
Expand Down

0 comments on commit 52f2532

Please sign in to comment.