我正在用wiredep & gulp编写一个脚本,但是当我包含Bootstrap时,在结尾有一个意想不到的结果:
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap-theme.css" />
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.min.css" />为什么wiredep同时包含.css和min.css文件?为什么引导主题也包括在内?
谢谢
发布于 2015-07-06 15:18:16
这个问题来自于我的bower.json中的一个糟糕的覆盖:
在此之前:
"overrides": {
"bootstrap": {
"main": [
"dist/js/*.*",
"dist/css/*.*",
"dist/fonts/*.*"
]
}固定的一个是:
"overrides": {
"bootstrap": {
"main": [
"dist/js/bootstrap.js",
"dist/css/bootstrap.css",
"dist/fonts/*.*"
]
}这个覆盖是3.3.5所需的,不应该再用3.3.6了。
发布于 2017-01-18 17:24:11
我用bindep代替了wiredep。它更专业,有许多功能,但最重要的是,它允许克服保龄球限制使用保龄球。
npm安装bindep
https://stackoverflow.com/questions/31246690
复制相似问题