From 8bc995008f281fdb6d1c253ef8cf3ea6a195efce Mon Sep 17 00:00:00 2001 From: Josh Parnham Date: Mon, 22 Jun 2020 20:53:53 +1000 Subject: [PATCH] docs: fix typo in README (#374) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 95f6648..8c1a771 100644 --- a/README.md +++ b/README.md @@ -672,7 +672,7 @@ https://cdn.example.com/directory/image.png?width=300&height=300 ### Dynamic public path depending on environment variable at run time -An application might want to configure different CDN hosts depending on an environment variable that is only available when running the application. This can be an advantage, as only one build of the application is necessary, which behaves differntly depending on environment variables of the deployment environment. Since file-loader is applied when compiling the application, and not when running it, the environment variable cannot be used in the file-loader configuration. A way around this is setting the `__webpack_public_path__` to the desired CDN host depending on the environment variable at the entrypoint of the application. The option `postTransformPublicPath` can be used to configure a custom path depending on a variable like `__webpack_public_path__`. +An application might want to configure different CDN hosts depending on an environment variable that is only available when running the application. This can be an advantage, as only one build of the application is necessary, which behaves differently depending on environment variables of the deployment environment. Since file-loader is applied when compiling the application, and not when running it, the environment variable cannot be used in the file-loader configuration. A way around this is setting the `__webpack_public_path__` to the desired CDN host depending on the environment variable at the entrypoint of the application. The option `postTransformPublicPath` can be used to configure a custom path depending on a variable like `__webpack_public_path__`. **main.js**