Install Sass on Ubuntu for Dart

Finally I choose to use a css pre-processing tools. Regarding the choice SCSS vs LESS, I chose SCSS after reading some blogs. (dartlang site is using sass, sass can generate map debuggable in chrome).
sudo apt-get install ruby1.9.1
sudo gem install sass
I did not use the watcher but simply modify my build.dart file to process scss file when changed
changed.forEach((filename) {
  if (extension(filename) == ".scss") {
    Process.run("sass", [ filename, withoutExtension(filename) + ".css" ]);
  };
});

Popular posts from this blog

Soving AccessDenied on Google Cloud Storage domain mapping

Fixing "DerInputStream.getLength(): lengthTag=109, too big" in Android Studio

Simple Samba setup on Lubuntu