How can I use the Sass CSS preprocessor in Visual Studio 2013? Are there any extensions that provide support for Sass?
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
- Custom controls disabled. There was an internal is
相关文章
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Web Test recorder does not allow me to record a te
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- The program '[4432] iisexpress.exe' has ex
- Copy different file to output directory for releas
- How to disable CodeLens' references display in
I wrote a blog post on this topic that I feel may help others. Basically SCSS is supported but not the SASS extension.
http://pwkad.wordpress.com/2014/05/30/using-scss-in-visual-studio-2013-with-web-essentials-starring-compass-and-susy/
Also be careful as I have run in to a few problems compiling Compass such as in the compass/css3/images file there were breaking errors.
I think the Web Essentials extension - which I'd assume every web dev is running and is sort of a precursor to native VS IDE support - has SCSS compilation support, but I think it only works with VS2013 Update 2 which is in CTP still at this time.
My comment is probably useless as people may already have an answer, but Scout is available for windows :), I have been using in my projects since March 2013.
You could use Mixture, really powerful and creates minified version of your CSS and JS files.
To compile SCSS in Visual studio, install the CompileSass Visual Studio Extension.
Unfortunately Web Essentials isn't going to support compiling Sass anymore.
I thought this was pretty sad because it was absolutely the simplest way to compile Sass from Visual Studio. I created a new Visual Studio extension that behaves the same way. You just install the extension and it will automatically compile .scss files to compressed .min.css files when you save.
Check out CompileSass.
I haven't used Chripy but there are a couple of other options you can try too.
The last option and the one I fall back on a lot of time is just using an external tool watch my SASS files, compile them in the background and let Visual Studio reload the CSS files as they're compiled.
Installing Ruby and SASS via command line and telling it to watch your project directory for changes works fine — but I adore Prepros for this kind of thing.
I haven't tried them all but Scout, Koala, LiveReload, Compass.app and Fire.app are also similar options.
While these aren't always the right solutions for every project they give you a lot of flexibility and maturity that you won't necessarily find in Visual Studio extensions yet.
I hope that helps!