mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Fix links to package (#3898)
This commit is contained in:
committed by
Dan Abramov
parent
db9d0ab89b
commit
25184c4e91
@@ -1,18 +1,18 @@
|
||||
# react-dev-utils
|
||||
|
||||
This package includes some utilities used by [Create React App](https://github.com/facebookincubator/create-react-app).<br>
|
||||
This package includes some utilities used by [Create React App](https://github.com/facebook/create-react-app).<br>
|
||||
Please refer to its documentation:
|
||||
|
||||
* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
|
||||
* [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.
|
||||
* [Getting Started](https://github.com/facebook/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
|
||||
* [User Guide](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.
|
||||
|
||||
## Usage in Create React App Projects
|
||||
|
||||
These utilities come by default with [Create React App](https://github.com/facebookincubator/create-react-app), which includes it by default. **You don’t need to install it separately in Create React App projects.**
|
||||
These utilities come by default with [Create React App](https://github.com/facebook/create-react-app), which includes it by default. **You don’t need to install it separately in Create React App projects.**
|
||||
|
||||
## Usage Outside of Create React App
|
||||
|
||||
If you don’t use Create React App, or if you [ejected](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-eject), you may keep using these utilities. Their development will be aligned with Create React App, so major versions of these utilities may come out relatively often. Feel free to fork or copy and paste them into your projects if you’d like to have more control over them, or feel free to use the old versions. Not all of them are React-specific, but we might make some of them more React-specific in the future.
|
||||
If you don’t use Create React App, or if you [ejected](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-eject), you may keep using these utilities. Their development will be aligned with Create React App, so major versions of these utilities may come out relatively often. Feel free to fork or copy and paste them into your projects if you’d like to have more control over them, or feel free to use the old versions. Not all of them are React-specific, but we might make some of them more React-specific in the future.
|
||||
|
||||
### Entry Points
|
||||
|
||||
@@ -84,7 +84,7 @@ module.exports = {
|
||||
|
||||
This Webpack plugin ensures `npm install <library>` forces a project rebuild.<br>
|
||||
We’re not sure why this isn't Webpack's default behavior.<br>
|
||||
See [#186](https://github.com/facebookincubator/create-react-app/issues/186) for details.
|
||||
See [#186](https://github.com/facebook/create-react-app/issues/186) for details.
|
||||
|
||||
```js
|
||||
var path = require('path');
|
||||
@@ -98,7 +98,7 @@ module.exports = {
|
||||
// If you require a missing module and then `npm install` it, you still have
|
||||
// to restart the development server for Webpack to discover it. This plugin
|
||||
// makes the discovery automatic so you don't have to restart.
|
||||
// See https://github.com/facebookincubator/create-react-app/issues/186
|
||||
// See https://github.com/facebook/create-react-app/issues/186
|
||||
new WatchMissingNodeModulesPlugin(path.resolve('node_modules'))
|
||||
],
|
||||
// ...
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
// This Webpack plugin ensures `npm install <library>` forces a project rebuild.
|
||||
// We’re not sure why this isn't Webpack's default behavior.
|
||||
// See https://github.com/facebookincubator/create-react-app/issues/186.
|
||||
// See https://github.com/facebook/create-react-app/issues/186.
|
||||
|
||||
'use strict';
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ function formatMessage(message, isError) {
|
||||
// Internal stacks are generally useless so we strip them... with the
|
||||
// exception of stacks containing `webpack:` because they're normally
|
||||
// from user code generated by WebPack. For more information see
|
||||
// https://github.com/facebookincubator/create-react-app/pull/1050
|
||||
// https://github.com/facebook/create-react-app/pull/1050
|
||||
message = message.replace(
|
||||
/^\s*at\s((?!webpack:).)*:\d+:\d+[\s)]*(\n|$)/gm,
|
||||
''
|
||||
|
||||
@@ -16,7 +16,7 @@ module.exports = function createNoopServiceWorkerMiddleware() {
|
||||
// previous service worker registered for the same host:port combination.
|
||||
// In the production build, this file is replaced with an actual service worker
|
||||
// file that will precache your site's local assets.
|
||||
// See https://github.com/facebookincubator/create-react-app/issues/2272#issuecomment-302832432
|
||||
// See https://github.com/facebook/create-react-app/issues/2272#issuecomment-302832432
|
||||
|
||||
self.addEventListener('install', () => self.skipWaiting());
|
||||
|
||||
|
||||
2
packages/react-dev-utils/openBrowser.js
vendored
2
packages/react-dev-utils/openBrowser.js
vendored
@@ -88,7 +88,7 @@ function startBrowserProcess(browser, url) {
|
||||
// Another special case: on OS X, check if BROWSER has been set to "open".
|
||||
// In this case, instead of passing `open` to `opn` (which won't work),
|
||||
// just ignore it (thus ensuring the intended behavior, i.e. opening the system browser):
|
||||
// https://github.com/facebookincubator/create-react-app/pull/1690#issuecomment-283518768
|
||||
// https://github.com/facebook/create-react-app/pull/1690#issuecomment-283518768
|
||||
if (process.platform === 'darwin' && browser === 'open') {
|
||||
browser = undefined;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"repository": "facebookincubator/create-react-app",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/facebookincubator/create-react-app/issues"
|
||||
"url": "https://github.com/facebook/create-react-app/issues"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
|
||||
@@ -41,7 +41,7 @@ ErrorOverlay.setEditorHandler(function editorHandler(errorLocation) {
|
||||
// runtime error. To prevent confusing behavior, we forcibly reload the entire
|
||||
// application. This is handled below when we are notified of a compile (code
|
||||
// change).
|
||||
// See https://github.com/facebookincubator/create-react-app/issues/3096
|
||||
// See https://github.com/facebook/create-react-app/issues/3096
|
||||
var hadRuntimeError = false;
|
||||
ErrorOverlay.startReportingRuntimeErrors({
|
||||
onError: function() {
|
||||
|
||||
Reference in New Issue
Block a user