mirror of https://github.com/status-im/bip39.git
Merge pull request #109 from SebastienGllmt/patch-1
Add instructions for wordlist removal in webpack
This commit is contained in:
commit
d5fb1edc68
10
README.md
10
README.md
|
@ -36,6 +36,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.
|
||||
|
||||
```javascript
|
||||
|
|
Loading…
Reference in New Issue