admin管理员组文章数量:1425671
I have an existing project, but I need to add sass/pass so that grunt will automatically pile it when I use the grunt server
mand.
Does anyone know how I do this?
Edit: I've managed to add grunt sas/passs to the project, but I need to configure gruntfile.js to watch and pile the css. All I've done to add sass support is to run npm install grunt-contrib-sass --save-dev
.
I have an existing project, but I need to add sass/pass so that grunt will automatically pile it when I use the grunt server
mand.
Does anyone know how I do this?
Edit: I've managed to add grunt sas/passs to the project, but I need to configure gruntfile.js to watch and pile the css. All I've done to add sass support is to run npm install grunt-contrib-sass --save-dev
.
- @TJonS I've managed to add grunt sass to the project, but I need to configure gruntfile.js to watch and pile the css. – ptf Commented Aug 24, 2013 at 21:55
- 3 Have you tried to do it at all yourself? If so, please share what you've done. – tjons Commented Aug 24, 2013 at 21:56
-
I used yeoman to set up the project, but didn't add sass/pass support. All I've done to add sass support is
npm install grunt-contrib-sass --save-dev
. – ptf Commented Aug 24, 2013 at 21:57 - 2 Why don't you add the support? Or, you should at least try! – tjons Commented Aug 24, 2013 at 22:00
- This question may be a duplicate. Here is the previous question; It may help. – tjons Commented Aug 24, 2013 at 22:02
1 Answer
Reset to default 6I've made a gist of a Gruntfile.js
I'm using for a project that does SASS pilation and a handfull of other things.
It's inspired of Yeoman's webapp generated Gruntfile.js
, with BlessCSS and Assemble, Htmlmin configured to run smoothly with Usemin and Coffee/Mocha stuff mented out.
Basically, what you need to do is config the SASS
task and then add it to the watch task, and setup livereload to watch your CSS
files.
Edit:
Since I was using this Gruntfile
and these grunt tasks
pretty often, I've since made a yeoman generator
that you can checkout here : p-j/generator-yawa
It does sass/pass among other things.
本文标签: javascriptYeoman Add sasscompass support in grunt to existing projectStack Overflow
版权声明:本文标题:javascript - Yeoman: Add sasscompass support in grunt to existing project - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745452542a2658953.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论