【发布时间】:2016-10-27 12:21:29
【问题描述】:
我有以下 index.html 文件头:
<head>
<title>Visualization</title>
<!-- build:css styles/build.css -->
<link rel="stylesheet" href="../bower_components/bootstrap/css/bootstrap.custom.min.css">
<!-- inject:css -->
<link rel="stylesheet" href="app/index.css">
<link rel="stylesheet" href="app/components/graph/graph.component.css">
<link rel="stylesheet" href="app/components/highchart/highchart.component.css">
<link rel="stylesheet" href="app/components/my-app/app.component.css">
<!-- endinject -->
<!-- endbuild -->
我现在面临的问题如下:
文件../bower_components/bootstrap/css/bootstrap.custom.min.css 包含对字体和图像的引用。
bower_components
bootstrap
css
bootstrap.custom.min.css
i
logo.png
fonts
glyphicons-halflings-regular.eot
glyphicons-halflings-regular.svg
src
index.html
我想编写一个 bower 脚本,将这些文件复制到我用来部署我的应用程序(包括实际层次结构)的 dist 文件夹。
由于我多次遇到此问题,因此我想编写一个通用(首选 gulp)任务来解决此问题。
非常感谢您的帮助。
【问题讨论】: