首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >避免使用wiredep包括引导min.css和.css

避免使用wiredep包括引导min.css和.css
EN

Stack Overflow用户
提问于 2015-07-06 13:05:55
回答 2查看 884关注 0票数 0

我正在用wiredep & gulp编写一个脚本,但是当我包含Bootstrap时,在结尾有一个意想不到的结果:

代码语言:javascript
复制
<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文件?为什么引导主题也包括在内?

谢谢

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-07-06 15:18:16

这个问题来自于我的bower.json中的一个糟糕的覆盖:

在此之前:

代码语言:javascript
复制
"overrides": {
    "bootstrap": {
        "main": [
            "dist/js/*.*",
            "dist/css/*.*",
            "dist/fonts/*.*"
        ]
    }

固定的一个是:

代码语言:javascript
复制
"overrides": {
    "bootstrap": {
        "main": [
            "dist/js/bootstrap.js",
            "dist/css/bootstrap.css",
            "dist/fonts/*.*"
        ]
    }

这个覆盖是3.3.5所需的,不应该再用3.3.6了。

票数 0
EN

Stack Overflow用户

发布于 2017-01-18 17:24:11

我用bindep代替了wiredep。它更专业,有许多功能,但最重要的是,它允许克服保龄球限制使用保龄球。

npm安装bindep

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31246690

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档