-
Notifications
You must be signed in to change notification settings - Fork 19
Sass and SCSS
BundleTransformer.SassAndScss contains one translator-adapter - SassAndScssTranslator
. This adapter makes translation of Sass and SCSS code to CSS code by using the LibSass Host for .NET version 1.2.1 (supports the LibSass version 3.5.5). Also contains the SassAndScssAssetHandler
debugging HTTP handler, which is responsible for text output of translated Sass or SCSS asset.
This package does not contain the native implementations of LibSass for Windows. Therefore, you need to choose and install the most appropriate package(s) for your platform. The following packages are available:
For correct working of the LibSass Host under Windows requires the Microsoft Visual C++ Redistributable for Visual Studio 2017.
In case, if you are running the BundleTransformer.SassAndScss on Mono for Unix-like operating systems, then you should read the “Installation > Mono support” section of LibSass Host's documentation.
To use a debugging HTTP handlers in the IIS Classic mode (this also applies to the XSP web server for Mono), you need add to the /configuration/system.web/httpHandlers
element of the Web.config
file a following code:
<add path="*.sass" verb="GET"
type="BundleTransformer.SassAndScss.HttpHandlers.SassAndScssAssetHandler, BundleTransformer.SassAndScss" />
<add path="*.scss" verb="GET"
type="BundleTransformer.SassAndScss.HttpHandlers.SassAndScssAssetHandler, BundleTransformer.SassAndScss" />