[If you like the extension, please leave a review, it puts a smile on my face.]
[If you found any bug or if you have any suggestion, feel free to report or suggest me.]
A VSCode Extension that help you to compile/transpile your SASS/SCSS files to CSS files at realtime with live browser reload.
-
Click to
Watch Sass
from Statusbar to turn on the live compilation and then click toStop Watching Sass
from Statusbar to turn on live compilation . -
Press
F1
orctrl+shift+P
and typeLive Sass: Watch Sass
to start live compilation or, typeLive Sass: Stop Watching Sass
to stop a live compilation. -
Press
F1
orctrl+shift+P
and typeLive Sass: Compile Sass - Without Watch Mode
to compile Sass or Scss for one time.
- Live SASS & SCSS Compile.
- Customizable file location of exported CSS.
- Customizable exported CSS Style (
expanded
,compact
,compressed
,nested
). - Customizable extension name (
.css
or.min.css
). - Quick Status bar control.
- Exclude Specific Folders by settings.
- Live Reload to browser (Dependency on
Live Server
extension).
Open VSCode Editor and Press ctrl+P
, type ext install live-sass
.
-
liveSassCompile.settings.format
: To customize exported CSS style -expanded
,compact
,compressed
ornested
.- Default is
expanded
.
- Default is
-
liveSassCompile.settings.savePath
: To customizable file location of exported CSS. Set absulate path from workspace Root.'/'
stands for your workspace root.- Example:
/subfolder1/subfolder2
. All generated CSS file will be saved atsubfolder2
. - NOTE: If destination folder does not exist, folder will be created as well.
- Default value is
null
, CSS will be generated at same directory of every SASS/SCSS files.
- Example:
-
liveSassCompile.settings.extensionName
: To customize extension name (.css
or.min.css
) of generated CSS.- Default is
.css
.
- Default is
-
liveSassCompile.settings.excludeList
: To Exclude specific folders. All Sass/Scss files inside the folders will be ignored.-
default value :
[ "**/node_modules/**", ".vscode/**" ]
-
You can use negative glob pattern.
- Example : if you want exclude all file except
file1.scss
&file2.scss
frompath/subpath
directory, you can use the expression -
[ "path/subpath/*[!(file1|file2)].scss" ]
- Example : if you want exclude all file except
-
-
liveSassCompile.settings.includeItems
: This setting is useful when you deals with only few of sass files. Only mentioned Sass files will be included.- NOTE: No need to include partial sass files.
- Default value is
null
- Example :
[ "path/subpath/a.scss", "path/subpath/b.scss", ]
This extension has dependency on Live Server extension for live browser reload.
-
-
[Renamed]
liveSassCompile.settings.excludeFolders
is renamed toliveSassCompile.settings.excludeList
. -
[Fixed] You can set glob pattern to exclude files through
liveSassCompile.settings.excludeList
settings. You can use negative glob pattern.- Example : if you want exclude all file except
file1.scss
&file2.scss
frompath/subpath
directory, you can use the expression -
[ "path/subpath/*[!(file1|file2)].scss" ]
- Example : if you want exclude all file except
-
[New Settings #8 ]
liveSassCompile.settings.includeItems
: This setting is useful when you deals with only few of sass files. Only mentioned Sass files will be included. NOTE: No need to include partial sass files. [Thanks PatrickPahlke].
-
-
- [Fixed #7] Duplicate Output. [Thanks Tomekk-hnm].
-
- [#5] Critical Fix Update for Linux & macOS. (Thanks a lot to Shea Fitzek).
-
- [Hot Fix] CSS & map link was broken.
To check full changelog click here changelog.
This extension is licensed under the MIT License
Create a .vscode
folder in the root of project. Inside of .vscode
folder create a json file named settings.json
.
Inside of the settings.json
, type following key-value pairs. By the way you'll get intelli-sense.
{
"liveSassCompile.settings.savePath": "/dist/css",
"liveSassCompile.settings.format": "compressed",
"liveSassCompile.settings.extensionName" : ".min.css",
"liveSassCompile.settings.excludeList": [
"**/node_modules/**",
".vscode/**"
]
}