我有一个咕噜任务配置(我正在工作现有的项目)。我不确定在哪里可以找到特定的任务。每次编译和构建后,我都会创建一个“index.html”文件并将其添加到“dist”文件夹中。但在我的index.html手动必须添加每次如下:Bootstrap.css没有被添加到index.html中
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.css">
,也是 -
<base href="/">
对于AJS。
可能是什么问题?
我不想编辑bower.json,而是使用grunt任务。那我该怎么做呢?
我有以下几点:
VAR buildConfig = module.exports = {
// Wiredep options
wiredepOptions: {
//
// devDependencies: true, // <-- injects bower devDependencies
//
// exclude: [ // <-- List of patterns to exclude
//
// /bootstrap\.js/
// ]
"overrides": {
"bootstrap": {
"main": [
"dist/css/bootstrap.css"
]
}
},
这使我的错误。我如何解决它?
我们'必须看到你的gruntfile,或至少你注入你的css的部分 – Tom
我是新来的grunt,这是一个现有的项目,那么我通常可以在哪里找到css注入? – Smitha