简体   繁体   中英

Ignore some dependencies when installing from bower.json

I have a dependency which I want to ignore temporarily from being installed but I still want to keep it in the bower.json file because don't want to try to remember its name if I will need it again.

How can I make it possible to not install some dependencies, something like putting special flag for them in bower.json ?

Pretty sure there isn't a way to do this nicely with bower.json.

you could do something like

"scripts": {
    "postinstall": "rm -rf /bower_components/dependency"
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM