How can I run SASS without installing?

I wanted to use SASS in our company’s web application, but I can’t install any programs on production machines. Everything I was looking for in SASS required you to run an installer such as gem, as well as require HAML.

I was hoping to find only a script that processes scss files without having to install anything else.

+7
sass
source share
6 answers

If you can run a java program on your build system, you can use JRuby to compile sass. See more details.

+3
source share

Well ... if you have Ruby, you can check out the Git Sass repository (https://github.com/nex3/sass). Do this by typing git clone https://github.com/nex3/sass.git or just download it.

You can then use the interactive Ruby console by typing irb . Try require 'sass/lib/sass' ( this one here ) and run Sass.compile_file 'my_styles.css' .

Otherwise ... why are you trying to do this? You can also install sass locally, run sass --watch in your sass folder, and automatically compile your scss files into css files that you can deploy to your production environment.

+4
source share

Here's a solution to use Sass without using the command line or installing dependencies. It works with Windows, OS X and Linux. It has a graphical interface and without installation, just unzip and double-click.

+2
source share

You can also use the java library https://github.com/scireum/server-sass , which can be integrated into any java-based web application. It will compile sass on the fly and return the resulting css. This is especially useful if Sass sources are changing (i.e., for configuration reasons), and compilation ahead of schedule is not possible. (Note: I am the author of the project - and this is not a complete implementation of the Sass standard).

+1
source share

Alternatively, you can do the following:

  • Install Ruby
  • Download Sass Gem
  • Go to loading location
  • Launch: gem install sass-3.3.4.gem
  • Voila! Sass is installed.
0
source share

Use the online Sass SassMeister compiler. You just need to paste your sass code in the left pane and get the css code on the right.

0
source share