How to use Grunt wiredep with RxJS

236 views Asked by At

RxJS lists several (35) variations of JavaScript distribution files.

$ cat bower_components/rxjs/bower.json | jq '.main' | grep .js | wc -l

when wiredep executes, all (35) file paths are injected into the target file, when I really only want one of the files.

How do I specify only one to be injected?

1

There are 1 answers

0
Jake Berger On

use wiredep's Bower Overrides

in your bower.json specify:

    ...
    "overrides": {
        "rxjs": {
            "main": "dist/rx.lite.compat.js"
        }
    }
    ...