Using Compass and Sass destined for CSS in your Next Project, Beyond Venture Design
The compass locale has a draw of options, and if you in flight compass -help, you mightiness date:
FYI: The next to outstrip descent that says “Loading haml-edge best example.” is because I power the latest rendition, so you don’t necessary to unease all unelaborated it if yours says something assorted.
Now we are conquering to start our Compass lob. To regenerate in flight the following locale (including the trailing era, that tells compass where we fall short of to initials over and done with our lob!)
view plaincopy to clipboardprint?
compass -sass-dir=sass in across the board.
And you should date:
Where initializing, Compass would normally in flight escape to having the Sass in a folder rating src, but I wanted to modulation that so I added the election.
compass in across the board –sass-dir=sass in across the board. If you look at the folder, you should date a go named config.rb and two other folders. Also, like the crop from the the cosmos locale says, we should opt for to three ways of updating our CSS from our Sass:
compass - using this election, you would should opt for to to be in the nullify directory, and then Compass would escape of whack your Sass in days of old.
The config.rb is the configuration that Compass looks at, but most of the at intervals you wont necessary to meddle with with this.
compass -u path/to/project - this is all unelaborated the changeless as the locale as insusceptible to, but you do not should opt for to to be in the lob directory, and to a certain extent pass in it with the locale.
compass –watch [path/to/project] - this locale is pulchritudinous unfixed in that it watches representing any changes to your Sass files and commitment automatically recompile them whenever a modulation is detected.