Skip to content

Instantly share code, notes, and snippets.

@medienbaecker
Created October 14, 2020 08:56

Revisions

  1. medienbaecker renamed this gist Oct 14, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. medienbaecker created this gist Oct 14, 2020.
    8 changes: 8 additions & 0 deletions script.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # Automatically get folder name to get Valet URL
    domain=$(basename "$PWD");

    # Watch style.scss and compile it
    node-sass -w assets/scss/style.scss assets/css/style.css |

    # Browsersync on Valet URL
    browser-sync start --proxy "$domain.test" --host "$domain.test" --open 'external' --files 'assets/css/*.css'