ASP.NET sass/scss compilation at run-time and at compile-time? ASP.NET sass/scss compilation at run-time and at compile-time? asp.net asp.net

ASP.NET sass/scss compilation at run-time and at compile-time?


The Pro edition of the Mindscape Web Workbench includes a command-line tool for compiling at runtime. Currently, only the nightly build is capable of compiling Bourbon and Neat (one of my requirements).

Here is my pre-build event which is working great at the moment:

"C:\Program Files (x86)\Mindscape\Web Workbench\Command Line\wwcmd.exe""$(ProjectDir)scss\style.scss" /o:../css /style:compressed

UPDATE:

We decided to simply call SASS from a pre-build event as opposed to using Web Workbench.

call sass -C "$(ProjectDir)assets\scss\main.scss" "$(ProjectDir)assets\css\compiled\main.css" --style compressed


Check out SassAndCoffee. It's what Cassette is using and it embeds everything into a few assemblies.

Web Workbench on the other hand actually installs ruby and the sass gems to the file system in a very long folder path hidden beneath the current users directory, which is likely to be troublesome for a web application and with respect to security and permissions.