From d8e784964c946aade4252f19bc4a6d5b27a4c8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=96=9F=20=E2=96=96=E2=96=9F=20=E2=96=96?= Date: Sat, 18 Apr 2015 11:05:41 +0200 Subject: [PATCH] note how to bundle with browserify in readme thanks to @wooorm for figuring this out. fixes #33 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c5ac5d9..c9c240f 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,14 @@ slug.defaults.modes['pretty'] = { }; ``` +## browser + +When using browserify you might want to remove the symbols table from your bundle by using `--ignore` similar to this: +```bash +# generates a standalone slug browser bundle: +browserify slug.js --ignore unicode/category/So -s slug > slug-browser.js +``` + [![Build Status](https://secure.travis-ci.org/dodo/node-slug.png)](http://travis-ci.org/dodo/node-slug) [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/dodo/node-slug/trend.png)](https://bitdeli.com/free "Bitdeli Badge")