Created
May 8, 2019 15:14
-
-
Save zmajstor/54b25b4c6a42ce96ca5eaf2813dca04b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://4sysops.com/archives/monitor-file-changes-in-windows-with-powershell-and-pswatch | |
# install with: | |
# iex ((new-object net.webclient).DownloadString("http://bit.ly/Install-PsWatch")) | |
Import-Module pswatch | |
watch ".\scss" | ForEach-Object { | |
write-host "Change made on $($_.Path)" | |
$sassc = 'C:\sassctest\proba-npm\proba-npm\sassc.exe' | |
$params = 'scss/style.scss css/style.css'.split(" ") | |
& "$sassc" $params | |
Copy-Item ".\css\style.css" -Destination ".\out2" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment