bower installs several files. why and how can I change it?

前端 未结 3 376
你的背包
你的背包 2020-12-29 23:19

I am using bower to install dependencies for my project(I know there is yeoman but I am using bower). After setting up component.json file, when I do bower install it instal

3条回答
  •  不思量自难忘°
    2020-12-30 00:15

    You can check out bower-installer.

    bower list --path usually tells about the main js file in the package, which bower-installer conveniently picks up and exports only those files to your asset directories. You can then use this directory instead and ignore the bower_components dir.

提交回复
热议问题