如何使用Bower进行最小化安装 [英] How to do a minimal install using Bower
本文介绍了如何使用Bower进行最小化安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Bower管理我正在用于项目的所有前端库和工具。我的 bower.json
文件看起来像这样
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"
}
}
当我运行 bower install
时,它会创建一个 jquery / src
目录,其中包含大量不需要的JS文件并且不会使用。我只需要 jquery.min.js
文件。有没有办法控制安装量,只需进行最小安装?
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?
推荐答案
只使用Bower时获取所需文件
Only Grab the Files You Need While Using Bower
链接:
- 解释: https://scotch.io/tutorials/only-grab-the-files-you-need-while-using-bower
- direct: https://github.com/blittle/bower-installer
- explanation: https://scotch.io/tutorials/only-grab-the-files-you-need-while-using-bower
- direct: https://github.com/blittle/bower-installer
这篇关于如何使用Bower进行最小化安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文