WatchSass.Tool
1.0.0
dotnet tool install --global WatchSass.Tool --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local WatchSass.Tool --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=WatchSass.Tool&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package WatchSass.Tool --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
WatchSass.Tool
This tool watches sass/scss files for modifcations and compiles to css.
- Will not compile partial/module files, file starting with
'_'
in the filename (_module.sass, _module_scss).\ - Can be configured to re-target the output file(s) to different folder(s)/file(s)
Install
dotnet tool install -g watchsass.tool --prelease
Run
By defaults monitors current working directory.
dotnet watch-sass watch [directory]
or
dotnet-watch-sass watch [directory]
Help
dotnet watch-sass --help
Config file
Config file is used to configure the output target css file from compiled sass/scss
Target can be either folder or file. If the target is a folder, then the css file will be named the same as the sass file.
Config file sass-watcher-tool.json
is searched for in the root of the path being monitored.
Config file layout
{
"sources": [
{
"source": "src/styles/main.sass",
"target": "src/dist/css/main.css"
}
]
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.