From 98a28bf26762f3727dec224c0cb264b50aa1ba0b Mon Sep 17 00:00:00 2001 From: Marco Luzi Date: Tue, 16 Jan 2024 15:44:38 +0100 Subject: [PATCH] Fix typos in the HMR and Fast Refresh section of the 10up-toolkit readme --- packages/toolkit/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/toolkit/README.md b/packages/toolkit/README.md index bfa731c2..0b975ca3 100644 --- a/packages/toolkit/README.md +++ b/packages/toolkit/README.md @@ -290,15 +290,15 @@ In some setups (such as Laravel Valet), Websocket SSL connections will fail unle If you aren't already customizing webpack in your project, create a new `webpack.config.js` file in the root of your project/theme. You need to specify the cert, key, and ca properties for the config.devServer.https object. -``` +```js const config = require('10up-toolkit/config/webpack.config.js'); -const fs = require('fs') +const fs = require('fs'); // Customize this to the appropriate path to your certificate folder -const certPath = '/Users/youruser/.config/valet' +const certPath = '/Users/youruser/.config/valet'; // Check if devServer is in use and if so, modify the cert files used -if( typeof config.devServer === 'object ) { +if( typeof config.devServer === 'object' ) { config.devServer.https = { key: fs.readFileSync(`${certPath}/Certificates/yoursite.test.key`), cert: fs.readFileSync(`${certPath}/Certificates/yoursite.test.crt`),