Skip to content

Instantly share code, notes, and snippets.

@wong2
Last active January 4, 2022 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wong2/e717a415cd4c84abac37f21f190c00b6 to your computer and use it in GitHub Desktop.
Save wong2/e717a415cd4c84abac37f21f190c00b6 to your computer and use it in GitHub Desktop.

How to build MetaMask extension with Snaps enabled

  1. Clone the source code from https://github.com/MetaMask/metamask-extension
  2. Switch to snaps branch
  3. yarn setup
  4. Copy the .metamaskrc.dist file to .metamaskrc and replace the INFURA_PROJECT_ID value with your own.
  5. yarn run build prod --build-type flask
  6. The build should be located at directory dist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment