Skip to content

glenn2223/vscode-live-sass-compiler

 
 

Repository files navigation

Live Sass Compiler

VSCode Marketplace Badge Total Install Average Rating Badge GitHub license

If you like what we do, then a sponsorship, or one time donation would mean the world!

Support us on ko-fi Buy me a coffee PayPal donate button Sponsor through GitHub

Why not join the discord community for devs everywhere: Discord


Watch the Live SASS Compiler: A Quick Start Guide, YouTube video

Like it? Leave a review (please)
Something wrong? Report an issue
New here? Watch the YouTube quick guide

A VSCode Extension that help you to compile/transpile your SASS/SCSS files to CSS at real-time.

Project links

Features

  • Live SASS & SCSS compile.
  • Customizable file location of exported CSS.
  • Customizable exported CSS style (expanded, compressed).
  • Customizable extension name (.css, .min.css, etc.).
  • Quick status bar control.
  • Exclude specific folders by settings.
  • Autoprefix support (See settings section)
  • Reference a module (node, or otherwise) with pkg: or ~/
    e.g. pkg:nodePackage/theSass.scss or ~/nodePackage/theSass.scss

Usage/Shortcuts

  1. Click to Watch Sass from the status bar to turn on the live compilation and then click to Stop Watching Sass from the status bar to turn off live compilation.
    Status bar control

  2. Press F1 or ctrl+shift+P and enter Live Sass: Watch Sass to start watching and Live Sass: Stop Watching Sass to stop watching.

  3. Press F1 or ctrl+shift+P and enter Live Sass: Compile Sass - Without Watch Mode to compile one time compile the current file.

Under the hood details

This extension is actually quite simple in it's implementation. Partial files compile all files in your project and non-partials compile just themselves. By default partial files are those that start with an underscore "_" however, you can specify a location/glob pattern by changing the liveSassCompile.settings.partialsList setting (which defaults to ["/**/_*.s[ac]ss"])

Installation

Open VSCode Editor and Press ctrl+P, type ext install glenn2223.live-sass.

Our Open Source Commitment

The open source community is struggling! Open source maintainers spends countless unpaid hours supporting those using their project, they need some support back! This is why we have an Open Source Commitment.

Any monthly donations that we get - specifically referencing this project - will be shared with our dependencies (specified below). We support the packages that need it most, so we may not donate to all dependencies (often those developed/maintained by big enterprises). We can also only support the ones have a means of receiving donations.

Who should donate to this project?

  • Those who use this product and receive some kind of profit as a result. Why not allocate a small margin to those supporting your project? This would mean the world to them, and you get some marketing out of it too thanks to GitHub's sponsors section on each project and profile
  • Those with a little extra money that they wouldn't mind contributing to support the open source community

Who do you share with?

The packages I rely on for this project already have significant funding or are backed by large for-profit organisations

Thank you Ritwick Dey

A big thank you to @ritwickdey for all his work. However, as they are no longer maintaining the original work, I have released my own which has built upon it.

About

Compile Sass or Scss file to CSS at realtime with live browser reload feature.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 94.2%
  • HTML 2.7%
  • JavaScript 1.8%
  • SCSS 1.3%