.github/workflows
integration.yml +36 -0
docusaurus/docs
advanced-configuration.md +1 -1
using-the-public-folder.md +1 -1
packages
create-react-app/__tests__
getTemplateInstallPackage.test.js +9 -9
eslint-config-react-app
README.md +1 -1
react-dev-utils
ModuleNotFoundPlugin.js +1 -8
ModuleScopePlugin.js +6 -0
README.md +2 -4
WebpackDevServerUtils.js +7 -64
evalSourceMapMiddleware.js +3 -1
formatWebpackMessages.js +13 -1
package.json +2 -2
typescriptFormatter.js +0 -45
webpackHotDevClient.js +1 -1
react-error-overlay
package.json +6 -7
webpack.config.js +4 -4
react-scripts
config
webpack/persistentCache
createEnvironmentHash.js +9 -0
paths.js +6 -0
webpack.config.js +118 -123
webpackDevServer.config.js +54 -60
fixtures/kitchensink/template
integration
webpack.test.js +5 -4
src/features/webpack
JsonInclusion.js +3 -1
scripts
utils
verifyTypeScriptSetup.js +1 -1
eject.js +2 -2
start.js +0 -9
package.json +28 -31
test/integration/create-react-app
index.test.js +90 -0
.eslintrc.json +2 -1
azure-pipelines-test-job.yml +1 -1
azure-pipelines.yml +19 -19
package.json +1 -0
.github/workflows/integration.yml
0 → 100644
+ 36
- 0
@@ -15,7 +15,7 @@ You can adjust various development and production settings by setting environmen
@@ -15,7 +15,7 @@ You can adjust various development and production settings by setting environmen
| PORT | ✅ Used | 🚫 Ignored | By default, the development web server will attempt to listen on port 3000 or prompt you to attempt the next available port. You may use this variable to specify a different port. |
| HTTPS | ✅ Used | 🚫 Ignored | When set to `true`, Create React App will run the development server in `https` mode. |
| WDS_SOCKET_HOST | ✅ Used | 🚫 Ignored | When set, Create React App will run the development server with a custom websocket hostname for hot module reloading. Normally, `webpack-dev-server` defaults to `window.location.hostname` for the SockJS hostname. You may use this variable to start local development on more than one Create React App project at a time. See [webpack-dev-server documentation](https://webpack.js.org/configuration/dev-server/#devserversockhost) for more details. |
| WDS_SOCKET_HOST | ✅ Used | 🚫 Ignored | When set, Create React App will run the development server with a custom websocket hostname for hot module reloading. Normally, `webpack-dev-server` defaults to `window.location.hostname` for the SockJS hostname. You may use this variable to start local development on more than one Create React App project at a time. See [webpack-dev-server documentation](https://webpack.js.org/configuration/dev-server/#devserversockhost) for more details. |
| WDS_SOCKET_PATH | ✅ Used | 🚫 Ignored | When set, Create React App will run the development server with a custom websocket path for hot module reloading. Normally, `webpack-dev-server` defaults to `/sockjs-node` for the SockJS pathname. You may use this variable to start local development on more than one Create React App project at a time. See [webpack-dev-server documentation](https://webpack.js.org/configuration/dev-server/#devserversockpath) for more details. |
| WDS_SOCKET_PATH | ✅ Used | 🚫 Ignored | When set, Create React App will run the development server with a custom websocket path for hot module reloading. Normally, `webpack-dev-server` defaults to `/ws` for the SockJS pathname. You may use this variable to start local development on more than one Create React App project at a time. See [webpack-dev-server documentation](https://webpack.js.org/configuration/dev-server/#devserversockpath) for more details. |
| WDS_SOCKET_PORT | ✅ Used | 🚫 Ignored | When set, Create React App will run the development server with a custom websocket port for hot module reloading. Normally, `webpack-dev-server` defaults to `window.location.port` for the SockJS port. You may use this variable to start local development on more than one Create React App project at a time. See [webpack-dev-server documentation](https://webpack.js.org/configuration/dev-server/#devserversockport) for more details. |
| WDS_SOCKET_PORT | ✅ Used | 🚫 Ignored | When set, Create React App will run the development server with a custom websocket port for hot module reloading. Normally, `webpack-dev-server` defaults to `window.location.port` for the SockJS port. You may use this variable to start local development on more than one Create React App project at a time. See [webpack-dev-server documentation](https://webpack.js.org/configuration/dev-server/#devserversockport) for more details. |
| PUBLIC_URL | ✅ Used | ✅ Used | Create React App assumes your application is hosted at the serving web server's root or a subpath as specified in [`package.json` (`homepage`)](deployment#building-for-relative-paths). Normally, Create React App ignores the hostname. You may use this variable to force assets to be referenced verbatim to the url you provide (hostname included). This may be particularly useful when using a CDN to host your application. |
| PUBLIC_URL | ✅ Used | ✅ Used | Create React App assumes your application is hosted at the serving web server's root or a subpath as specified in [`package.json` (`homepage`)](deployment#building-for-relative-paths). Normally, Create React App ignores the hostname. You may use this variable to force assets to be referenced verbatim to the url you provide (hostname included). This may be particularly useful when using a CDN to host your application. |
| BUILD_PATH | 🚫 Ignored | ✅ Used | By default, Create React App will output compiled assets to a `/build` directory adjacent to your `/src`. You may use this variable to specify a new path for Create React App to output assets. BUILD_PATH should be specified as a path relative to the root of your project. |
| BUILD_PATH | 🚫 Ignored | ✅ Used | By default, Create React App will output compiled assets to a `/build` directory adjacent to your `/src`. You may use this variable to specify a new path for Create React App to output assets. BUILD_PATH should be specified as a path relative to the root of your project. |
@@ -60,7 +60,7 @@ The `public` folder is useful as a workaround for a number of less common cases:
@@ -60,7 +60,7 @@ The `public` folder is useful as a workaround for a number of less common cases:
- You need a file with a specific name in the build output, such as [`manifest.webmanifest`](https://developer.mozilla.org/en-US/docs/Web/Manifest).
- You want to include a small script like [`pace.js`](https://github.hubspot.com/pace/docs/welcome/) outside of the bundled code.
- Some libraries may be incompatible with webpack and you have no other option but to include it as a `<script>` tag.
Note that if you add a `<script>` that declares global variables, you should read the topic [Using Global Variables](using-global-variables.md) in the next section which explains how to reference them.
@@ -21,9 +21,9 @@ describe('getTemplateInstallPackage', () => {
@@ -21,9 +21,9 @@ describe('getTemplateInstallPackage', () => {
@@ -45,9 +45,9 @@ describe('getTemplateInstallPackage', () => {
@@ -45,9 +45,9 @@ describe('getTemplateInstallPackage', () => {
@@ -69,9 +69,9 @@ describe('getTemplateInstallPackage', () => {
@@ -69,9 +69,9 @@ describe('getTemplateInstallPackage', () => {
it('http://example.com/cra-template.tar.gz gives http://example.com/cra-template.tar.gz', async () => {
@@ -39,7 +39,7 @@ This config also ships with optional Jest rules for ESLint (based on [`eslint-pl
@@ -39,7 +39,7 @@ This config also ships with optional Jest rules for ESLint (based on [`eslint-pl
You can then enable these rules by adding the Jest config to the `extends` array in your ESLint config.