From d30e16763ab7ab5cf6960d24eefeedc8ce6ad809 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Tue, 24 Jan 2023 19:16:54 +0800 Subject: [PATCH 1/2] Add `config.cache` example to `webpack.local-config.js` note --- CONTRIBUTING.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9d32e2215b..f119bbcd35 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,10 +44,13 @@ To get started clone the repo and get the web application started. 5. Point your browser to [http://localhost:4242](http://localhost:4242). 6. If port `4242` is taken, then you can run the web app on a different port: `FX_PROFILER_PORT=1234 yarn start` -Other [webpack](https://webpack.js.org/configuration/) and [webpack server](https://webpack.js.org/configuration/dev-server/) options can be set in a `webpack.local-config.js` file at the repo root. For example, if you want the server to automatically open the home page, put in there the following code: +Other [webpack](https://webpack.js.org/configuration/) and [webpack server](https://webpack.js.org/configuration/dev-server/) options can be set in a `webpack.local-config.js` file at the repo root. For example, if you want the build to be cached on the filesystem and the server to automatically open the home page, put in there the following code: ```js module.exports = function (config, serverConfig) { + config.cache = { + type: 'filesystem', + }; serverConfig.open = true; }; ``` From 97f8244e7c7f2931321841ec4c1f51522fbf35f3 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Wed, 25 Jan 2023 20:28:27 +0800 Subject: [PATCH 2/2] Shorten sentence --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f119bbcd35..13f578590a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,7 +44,7 @@ To get started clone the repo and get the web application started. 5. Point your browser to [http://localhost:4242](http://localhost:4242). 6. If port `4242` is taken, then you can run the web app on a different port: `FX_PROFILER_PORT=1234 yarn start` -Other [webpack](https://webpack.js.org/configuration/) and [webpack server](https://webpack.js.org/configuration/dev-server/) options can be set in a `webpack.local-config.js` file at the repo root. For example, if you want the build to be cached on the filesystem and the server to automatically open the home page, put in there the following code: +Other [webpack](https://webpack.js.org/configuration/) and [webpack server](https://webpack.js.org/configuration/dev-server/) options can be set in a `webpack.local-config.js` file at the repo root. For example, if you want a persistent build cache and the server to automatically open the home page, put in there the following code: ```js module.exports = function (config, serverConfig) {