Gulp 鲍尔组件的最佳实践

Gulp 鲍尔组件的最佳实践,gulp,bower,Gulp,Bower,所以我刚刚开始使用gulp、bower和polymer等工具编写前端代码 我通过bower安装了polymer和一些材料设计组件 是引用bower_组件文件夹中的文件的最佳做法,例如: <link rel="import" href="bower_components/paper-button/paper-button.html"> 或者我应该使用gulp将需要的内容复制到另一个文件夹结构中 谢谢大家! 很可能就是您正在寻找的软件包 它将搜索bower_components文件

所以我刚刚开始使用gulp、bower和polymer等工具编写前端代码

我通过bower安装了polymer和一些材料设计组件

是引用bower_组件文件夹中的文件的最佳做法,例如:

<link rel="import" href="bower_components/paper-button/paper-button.html">

或者我应该使用gulp将需要的内容复制到另一个文件夹结构中

谢谢大家!

很可能就是您正在寻找的软件包

它将搜索bower_components文件夹,并将所有依赖项文件注入index.html

HTML中的用法:

<html>
<head>
  <!-- bower:css -->
  <!-- endbower -->
</head>
<body>
  <!-- bower:js -->
  <!-- endbower -->
</body>
很可能就是你要找的包裹

它将搜索bower_components文件夹,并将所有依赖项文件注入index.html

HTML中的用法:

<html>
<head>
  <!-- bower:css -->
  <!-- endbower -->
</head>
<body>
  <!-- bower:js -->
  <!-- endbower -->
</body>

创建
.bowerrc

应该是这样的:

ex:.bowerrc

{
 "directory:"folder/path"
}

do:bower install

创建
.bowerrc

应该是这样的:

ex:.bowerrc

{
 "directory:"folder/path"
}

do:bower install