From 0772cd77f62be41f5da157558242f4f61676f38f Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Mon, 23 Feb 2015 19:32:57 -0300 Subject: [PATCH] add sh types --- docs/browser.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/browser.md b/docs/browser.md index e61cc33..8a984ae 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -10,7 +10,7 @@ Bitcore and most official submodules work in the browser, thanks to [browserify] The easiest and recommended way to use them, is via [Bower](http://bower.io/), a browser package manager, and get the release bundles. For example, when building an app that uses `bitcore` and `bitcore-ecies`, you do: -``` +```sh bower install bitcore bower install bitcore-ecies ``` @@ -58,12 +58,12 @@ After this, you can include the bundled release versions in your HTML file: If you want to use a specific version of a module, instead of a release version (not recommended), you must run browserify yourself. You can get a minified browser bundle by running the following on the project root folder. -``` +```sh browserify --require ./index.js:bitcore | uglifyjs > bitcore.min.js ``` (for bitcore) -``` +```sh browserify --require ./index.js:bitcore-ecies --external bitcore | uglifyjs > bitcore-ecies.min.js ``` (for a bitcore module, `bitcore-ecies` in the example)