How to do a minimal install using Bower

我只是一个虾纸丫 提交于 2019-12-10 14:13:34

问题


I'm using Bower to manage all the front end libraries and tools I'm using for a project. My bower.json file looks like this

{
  "name": "New Project",
  "version": "0.1.0",
  "dependencies": {
    "jquery": "~1.11.1",
    "bootstrap": "~3.3.4"
  }
}

When I run bower install it creates a jquery/src directory with a ton of JS files that I don't need and won't use. I just need the jquery.min.js file. Is there a way to control how much is installed and just do a minimal install?


回答1:


Only Grab the Files You Need While Using Bower

links:

  1. explanation: https://scotch.io/tutorials/only-grab-the-files-you-need-while-using-bower
  2. direct: https://github.com/blittle/bower-installer


来源:https://stackoverflow.com/questions/30879558/how-to-do-a-minimal-install-using-bower

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!