33 lines
968 B
Markdown
33 lines
968 B
Markdown
---
|
||
title: Bower
|
||
localeTitle: 鲍尔
|
||
---
|
||
## 鲍尔
|
||
|
||
Bower是网络的包管理器。 Bower可以管理包含HTML,CSS,JavaScript,字体甚至图像文件的组件。 Bower针对前端进行了优化。如果多个包依赖于一个包 - 例如jQuery - Bower将只下载一次jQuery。这称为平面依赖图,它有助于减少页面加载。
|
||
|
||
### 安装Bower
|
||
|
||
Bower是一个命令行实用程序。用npm安装它。
|
||
|
||
```shell
|
||
npm install -g bower
|
||
```
|
||
|
||
### 安装包
|
||
|
||
使用bower安装安装包。 Bower将软件包安装到bower\_components /。
|
||
|
||
```shell
|
||
bower install <package>
|
||
```
|
||
|
||
### 更多信息:
|
||
|
||
Bower网站: [bower.io](https://bower.io)
|
||
|
||
使用Bower管理前端资源: [scotch.io](https://scotch.io/tutorials/manage-front-end-resources-with-bower)
|
||
|
||
使用Bower: [youtube](https://www.youtube.com/watch?v=Vs2wduoN9Ws)简化Web工作流程
|
||
|
||
使用Bower与Heroku: [中等](https://hackernoon.com/using-bower-with-heroku-cdc791320c88) |