Skip to content

Commit

Permalink
Merge pull request #109 from SebastienGllmt/patch-1
Browse files Browse the repository at this point in the history
Add instructions for wordlist removal in webpack
  • Loading branch information
junderw authored Apr 9, 2019
2 parents cd6bcdb + 26c0f1b commit d5fb1ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ $ browserify -r bip39 -s bip39 \
```

This will create a bundle that only contains the chinese_simplified wordlist, and it will be the default wordlist for all calls without explicit wordlists.

You can also do this in Webpack using the `IgnorePlugin`. Here is an example of excluding all non-English wordlists

```javascript
...
plugins: [
new webpack.IgnorePlugin(/^\.\/(?!english)/, /bip39\/src\/wordlists$/),
],
...
```

This is how it will look in the browser console.

Expand Down

0 comments on commit d5fb1ed

Please sign in to comment.