Skip to content

Commit d4ca251

Browse files
Remove bower instructions
Takes up a ton of README space for a defunct package manager. Can move to like bower.md or something alternatively
1 parent 9f18241 commit d4ca251

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

README.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -35,39 +35,6 @@ To load the core SDK and optionally load session recording bundle asynchronously
3535
import mixpanel from 'mixpanel-browser/src/loaders/loader-module-with-async-recorder';
3636
```
3737

38-
## Alternative installation via Bower
39-
`mixpanel-js` is also available via front-end package manager [Bower](http://bower.io/). After installing Bower, fetch into your project's `bower_components` dir with:
40-
```sh
41-
bower install mixpanel
42-
```
43-
44-
### Using Bower to load the snippet
45-
You can then load the lib via the embed code (snippet) with a script reference:
46-
```html
47-
<script src="bower_components/mixpanel/mixpanel-jslib-snippet.min.js"></script>
48-
```
49-
which loads the _latest_ library version from the Mixpanel CDN ([http://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js](http://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js)).
50-
51-
### Using Bower to load the entire library
52-
If you wish to load the specific version downloaded in your Bower package, there are two options.
53-
54-
1) Override the CDN library location with the global `MIXPANEL_CUSTOM_LIB_URL` var:
55-
```html
56-
<script>
57-
window.MIXPANEL_CUSTOM_LIB_URL = 'bower_components/mixpanel/mixpanel.js';
58-
</script>
59-
<script src="bower_components/mixpanel/mixpanel-jslib-snippet.min.js"></script>
60-
```
61-
or
62-
63-
2) Recompile the snippet with a custom `MIXPANEL_LIB_URL` using [Closure Compiler](https://developers.google.com/closure/compiler/):
64-
```sh
65-
java -jar compiler.jar --js src/loaders/mixpanel-jslib-snippet.js --js_output_file mixpanel-jslib-snippet.min.js --compilation_level ADVANCED_OPTIMIZATIONS --define='MIXPANEL_LIB_URL="bower_components/mixpanel/mixpanel.js"'
66-
```
67-
68-
### Upgrading from mixpanel-bower v2.2.0 or v2.0.0
69-
If you originally installed Mixpanel via Bower at its previous home ([https://github.com/drubin/mixpanel-bower](https://github.com/drubin/mixpanel-bower)), the two old versions have remained functionally unchanged. To upgrade to v2.3.6 or later (the first Bower version in the official repo) from a previous Bower install, note the changed filenames: previous references to `mixpanel.js` should become `mixpanel-jslib-snippet.min.js` (the minified embed code), and previous references to `mixpanel.dev.js` should become `mixpanel.js` (the library source) or `mixpanel.min.js` (the minified library for production use).
70-
7138
## Building bundles for release
7239
- Install development dependencies: `npm install`
7340
- Build: `npm run build-dist`

0 commit comments

Comments
 (0)