A simple and flexible SCSS compiler script for your web projects.
Musezz is a Bash script that simplifies compiling SCSS files to CSS. It supports both Dart Sass and Node Sass, works with file watching, and offers various customization options.
- Supports both Dart Sass and Node Sass
- Watch mode for automatic compilation when files change
- Recursive directory processing
- Skips partial files (beginning with
_) - Multiple style outputs (compressed, expanded, etc.)
- Source map generation
- Force compilation option
You need one of the following installed:
For watch mode, you'll need:
- macOS: fswatch
- Linux: inotifywait
-
Clone this repository:
git clone https://github.com/yourusername/musezz.git
-
Make the script executable:
chmod +x musezz.sh
Basic usage:
./musezz.sh -i <input_directory> -o <output_directory>| Option | Description |
|---|---|
-i, --input <dir> |
Input directory containing SCSS files |
-o, --output <dir> |
Output directory for compiled CSS |
-s, --style <style> |
Output style (compressed, expanded, etc.) |
-m, --source-map |
Generate source maps |
-w, --watch |
Watch for file changes |
-r, --recursive |
Process directories recursively |
-f, --force |
Force compilation even if files are up-to-date |
-h, --help |
Show help information |
Compile a directory of SCSS files:
./musezz.sh -i src/scss -o src/cssWatch for changes and compile automatically:
./musezz.sh -i src/scss -o src/css -wCompile with expanded style and source maps:
./musezz.sh -i src/scss -o src/css -s expanded -mMIT License
Contributions are welcome! Please feel free to submit a Pull Request.