From: Miro Metsänheimo Date: Mon, 14 Oct 2019 20:20:01 +0000 (+0300) Subject: fix unpkg build X-Git-Tag: v0.0.1~37^2 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=a0a8e578d92c7c7e3b6c6b3da5e63347e8a6fab8;p=libnemo.git fix unpkg build --- diff --git a/README.md b/README.md index 1fb0faf..d62491a 100644 --- a/README.md +++ b/README.md @@ -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 + +``` + + + NanocurrencyWeb.wallet.generate(...); + +``` + --- ## Contributions diff --git a/package.json b/package.json index a2dd3c4..c534f97 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "MIT", diff --git a/webpack.config.js b/webpack.config.js index d8192ae..0a41b3e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -18,6 +18,7 @@ module.exports = { output: { filename: 'index.min.js', path: path.resolve(__dirname, 'dist'), - libraryTarget: 'commonjs2', + libraryTarget: 'var', + library: 'NanocurrencyWeb', }, } \ No newline at end of file