mwrock / RequestReduce

Instantly makes your .net website faster by reducing the number and size of requests with almost no effort.
www.requestreduce.org
Apache License 2.0
228 stars 48 forks source link

Create a SASS compiler into a standalone executable #146

Closed emagnier closed 12 years ago

emagnier commented 12 years ago

Will it be possible and feasible to package the Sass compiler into a standalone executable (and without installing Ruby)?

It already exist for the .Less files (with the dotLess project) and CoffeeScript, but not for Sass, which is I think a big lack for this metalanguage.

I thinks a command line compiler should give us a lots of new ways to compile Scss files and to make solutions self-contained. For example to kick off the executable compiler as a build task, or with a PowerShell script (would be very useful in the case of a SharePoint project).

We could use it as this way: $(SolutionDir)Tools\sass.compiler.exe $(ProjectDir)\css\styles.scss $(ProjectDir)\css\styles.css -minified

After that, the two other existing compilers (for .Less and CoffeeScript) could be included in RequestReduce.

Thanks! Etienne.

mwrock commented 12 years ago

Hi Etienne,

RequestReduce currently just uses the SassAndCoffee package from @xpaulbettsx for its SASS compilation functionality. I've been very happy with this solution and it integrates well with RequestReduce Tweaking the compilation methodology is really outside of the scope of the RequestReduce project whose focus is on auto optimization of sites running on IIS. I'm sure there are .net compatible command line compilers available. If build time SASS compilation is what you are after, I would work a command line solution into your build script and then just use the core RequestReduce package for runtime optimizations.