How do you uninstall all your bower packages?

前端 未结 8 1575
礼貌的吻别
礼貌的吻别 2021-01-30 06:09

Sometimes it\'s useful to rebuild an entire site and force bower to reinstall new versions of all the packages in bower.json.

However, there doesn\'t seem to be any way

8条回答
  •  無奈伤痛
    2021-01-30 07:00

    I don't know what build tools you use, but if it includes Grunt with grunt-bowercopy, you could use the clean option. It removes the bower_components folder (or whatever you've configured it to use) after copying out the required files.

    Ideally, I'd prefer something that didn't require me to re-download all the dependencies with each build, but just the ones where doing a fresh install would find a newer version.

    I'm looking for a better solution to this as well, so I'll update if I find one.

提交回复
热议问题