ab-dart-sass/entrypoint.sh
Asif Bacchus 09ab9a5f62 fix(entrypoint): change dart-sass cli options
- oneshot: remove --update, re-compile of all files
- watch: remove --stop-on-error
  - allow continuation after errors instead of container exit
  - display errors and allow for realtime correction
2021-08-03 21:21:53 -06:00

20 lines
365 B
Bash

#!/bin/sh
#
# ab-dart-sass entrypoint script
#
if [ "$1" = "shell" ]; then
exec /bin/bash
elif [ "$1" = "oneshot" ]; then
exec /opt/dart-sass/sass -s "$SASS_STYLE" --stop-on-error --embed-sources /sass:/css
elif [ -n "$1" ]; then
exec "$@"
else
exec /opt/dart-sass/sass -s "$SASS_STYLE" --watch --poll --embed-sources /sass:/css
fi
exit $?
#EOF