Added watch.sh for compiling SCSS with native sass compiler

This commit is contained in:
Djamil Legato
2021-01-20 10:32:24 -08:00
parent 41305c9d34
commit b8c47c32b3
2 changed files with 30 additions and 1 deletions

View File

@@ -1,7 +1,9 @@
# v1.10.1
## 01/20/2021
1. [](#bugfix)
1. [](#improved)
* Added `watch.sh` for compiling SCSS with native sass compiler
2. [](#bugfix)
* Fixed issue with overlapping sidebar when using fullscreen editor [#2022](https://github.com/getgrav/grav-plugin-admin/issues/2022)
# v1.10.0

27
themes/grav/watch.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/sh
#
# Configuration
#
# sass source
SASS_SOURCE_PATH="scss"
# sass options
SASS_OPTIONS="--source-map=true --style=nested"
# css target
CSS_TARGET_PATH="css-compiled"
#
# Check prerequisites
#
wtfile=$(command -v wt) || { echo "install wellington with 'brew install wellington"; exit 1; }
#
# Watch folder for changes
#
cd -P `pwd`
$wtfile compile "$SASS_SOURCE_PATH" -b "$CSS_TARGET_PATH" $SASS_OPTIONS
$wtfile watch "$SASS_SOURCE_PATH" -b "$CSS_TARGET_PATH" $SASS_OPTIONS