Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't know if you want to compile all these scattered SASS files in one compiled CSS. If that's the case I'm afraid I don't know how to help you.</p> <p>However, if you want multiple files one possible solution is to use Rake.</p> <p>What about wrapping all the watch commands you need in one Rake task, and then executing such task in order to get them running at once.</p> <h3>Rakefile</h3> <pre class="lang-rb prettyprint-override"><code>namespace :stylesheets do desc 'Watches dynamic stylesheets for user 1 to compile changes' task :watch_user1 do puts 'Watching first set of stylesheets...' system 'compass watch --sass-dir users/user1/css --css-dir users/user1/css/generated -c config/compass.rb' end desc 'Watches dynamic stylesheets for user 2 to compile changes' task :watch_user2 do puts 'Watching second set of stylesheets...' system 'compass watch --sass-dir users/user2/css --css-dir users/user2/css/generated -c config/compass.rb' end desc 'Watches dynamic stylesheet all to compile changes' multitask watch_all: ['stylesheets:watch_user1', 'stylesheets:watch_user2'] do puts 'watching all...' end end </code></pre> <p>Then you just run the multi task <code>rake stylesheets:watch_all</code> and all the sub tasks are issued running their commands in threads.</p> <p>This rake tasks can be heavily improved because they are repetitive and through some conventions you could even configure it through .yml files, but hopefully will give you ideas of what you can do with Rake.</p> <p>Here some more info on <a href="http://rake.rubyforge.org/" rel="nofollow">Rake</a> and a <a href="http://jasonseifer.com/2010/04/06/rake-tutorial" rel="nofollow">nice tutorial about writing rake tasks</a></p> <p>Cheers!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload