Skip to content

Commit

Permalink
note how to bundle with browserify in readme
Browse files Browse the repository at this point in the history
thanks to @wooorm for figuring this out.
fixes #33
  • Loading branch information
dodo committed Apr 18, 2015
1 parent 3aff94b commit d8e7849
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d8e7849

Please sign in to comment.