[英]Grunt not working for auto reference css and js
I'm currently face an issue for grunt server, when I run grunt, it still only load and generate path for the default scss, and js (my project was generated by yeoman webapp generator) 我目前遇到grunt服务器的问题,当我运行grunt时,它仍然仅加载并生成默认scss和js的路径(我的项目是由yeoman webapp生成器生成的)
here is my bower.json 这是我的bower.json
{
"name": "securechat",
"private": true,
"dependencies": {
"modernizr": "~2.6.2",
"jquery": "~1.9.0"
},
"devDependencies": {
"alertify": "~0.3.10",
"keymaster": "~1.6.2"
}
}
Should I put js info under dependencies or devDependencies? 我应该将js信息置于依赖关系还是devDependencies下? why my grunt not working for auto reference css and js 为什么我的咕unt声不适用于自动引用的CSS和JS
My scss file all under app/sytles folder 我的scss文件全部在app / sytles文件夹下
An empty main.js file so far under app/scripts 到目前为止,app / scripts下的一个空main.js文件
Gruntfile.js was generated from yeoman webapp generator, with sass and modernizr selected. Gruntfile.js是从yeoman webapp生成器生成的,并选择了sass和modernizr。
After I change the bower.json structure to 在我将bower.json结构更改为
{
"name": "securechat",
"private": true,
"dependencies": {
"modernizr": "~2.6.2",
"jquery": "~1.9.0",
"alertify": "~0.3.10",
"keymaster": "~1.6.2"
},
"devDependencies": {
}
}
It works, but only cannot auto reference the css file under bower_components, if that package got css file as well. 它可以工作,但只能自动引用bower_components下的css文件(如果该软件包也具有css文件)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.