Add instructions for webpack

Sharing this for anybody else that needs it 👍
This commit is contained in:
Sebastien Guillemot 2019-04-08 03:15:14 +09:00 committed by GitHub
parent cd6bcdbb2e
commit 5cf326c2a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ $ 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
new webpack.IgnorePlugin(/^\.\/(?!english)/, /bip39\/src\/wordlists$/),
```
This is how it will look in the browser console.
```javascript