Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in the HMR and Fast Refresh section of the 10up-toolkit readme #364

Closed
1 task done
marcoluzi opened this issue Jan 16, 2024 · 0 comments
Closed
1 task done

Comments

@marcoluzi
Copy link
Contributor

Is your enhancement related to a problem? Please describe.

Fixing syntax error in the README.md of the 10up-toolkit package.

Fixed Code:

const config = require('10up-toolkit/config/webpack.config.js');
const fs = require('fs');

// Customize this to the appropriate path to your certificate folder
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' ) {
  config.devServer.https = {
    key: fs.readFileSync(`${certPath}/Certificates/yoursite.test.key`),
    cert: fs.readFileSync(`${certPath}/Certificates/yoursite.test.crt`),
    ca: fs.readFileSync(`${certPath}/CA/LaravelValetCASelfSigned.pem`),
  }
}

module.exports = config;

I will open a PR with the changes.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants