How i can use yeoman to work with Sass files?

谁都会走 提交于 2019-12-10 15:33:22

问题


I try to use yeoman to compile a styles.sass file founded in app/styles directory.

In my index.html i write :

<!-- build:css(.tmp/styles) styles/styles.css -->
<link rel="stylesheet" href="styles/style.sass" />
<!-- endbuild -->

When i launch grunt server

Sass file is watched and compiled into

.tmp/styles/

But in my dist/styles directory, nothing is written in my xxxxxxx.styles.css

may i miss something?


回答1:


Your Sass is compiled into .tmp/styles when running grunt server, since it's only temporary. This is done so not to create a mess of compiled CSS files in your app directory. When you run grunt it will compile it to the dist/styles folder.



来源:https://stackoverflow.com/questions/17213242/how-i-can-use-yeoman-to-work-with-sass-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!