【发布时间】:2014-12-05 20:17:05
【问题描述】:
我的 .bowerrc 是这样的:
{
"directory": "components",
"strict-ssl": true
}
在 bower.json 我有:
"dependencies": {
"jquery": "~2.1.1",
"bootstrap": "~3.3.1"
}
当我运行 bower install 时,它会将 jquery 和 bootstrap 下载到 components 文件夹。
我正在尝试使用 Grunt 生成如下所示的结构,但是,我找不到可以执行此操作的插件。
build /
js/jquery.min.js
js/bootstrap.min.js
css/bootstrap.min.css
fonts/glyphicons-halflings-regular.eot
fonts/glyphicons-halflings-regular.svg
fonts/glyphicons-halflings-regular.ttf
fonts/glyphicons-halflings-regular.woff
复制这些文件后,我想压缩(我知道如何执行此步骤)构建文件夹中的内容。
【问题讨论】:
-
您也可以使用
grunt-contrib-concat合并文件以减少网络请求。
标签: javascript gruntjs bower