fix unpkg build

This commit is contained in:
Miro Metsänheimo 2019-10-14 23:20:01 +03:00
commit a0a8e578d9
3 changed files with 15 additions and 2 deletions

View file

@ -21,6 +21,8 @@ The toolkit supports creating and importing wallets and signing blocks on-device
## Usage
### From NPM
```
npm install nanocurrency-web
```
@ -162,6 +164,16 @@ const converted = converter.convert('1', 'NANO', 'RAW')
// Convert 1 RAW to Nano
const converted = converter.convert('1000000000000000000000000000000', 'RAW', 'NANO')
```
### In web
```
<script src="https://unpkg.com/nanocurrency-web@1.0.3" type="text/javascript"></script>
<scrypt type="text/javascript">
NanocurrencyWeb.wallet.generate(...);
</script>
```
---
## Contributions

View file

@ -1,6 +1,6 @@
{
"name": "nanocurrency-web",
"version": "1.0.2",
"version": "1.0.3",
"description": "Toolset for Nano cryptocurrency client side offline integrations",
"author": "Miro Metsänheimo <miro@metsanheimo.fi>",
"license": "MIT",

View file

@ -18,6 +18,7 @@ module.exports = {
output: {
filename: 'index.min.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'commonjs2',
libraryTarget: 'var',
library: 'NanocurrencyWeb',
},
}