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 ## Usage
### From NPM
``` ```
npm install nanocurrency-web npm install nanocurrency-web
``` ```
@ -162,6 +164,16 @@ const converted = converter.convert('1', 'NANO', 'RAW')
// Convert 1 RAW to Nano // Convert 1 RAW to Nano
const converted = converter.convert('1000000000000000000000000000000', 'RAW', '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 ## Contributions

View file

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

View file

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