问题
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