From acdeafe6dbbd2554537e208c895a693a82154a41 Mon Sep 17 00:00:00 2001 From: Mat Waller Date: Fri, 15 Sep 2017 03:27:20 +0100 Subject: [PATCH] Watch Batch Batch file to provide node-sass/webpack watching for windows users. --- ui/watch.bat | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ui/watch.bat diff --git a/ui/watch.bat b/ui/watch.bat new file mode 100644 index 000000000..0c064759a --- /dev/null +++ b/ui/watch.bat @@ -0,0 +1,11 @@ +@echo off + +set found= +for %%F in ( + "%~dp0\node_modules\node-sass\bin\node-sass" + "%~dp0\node_modules\.bin\webpack" +) do if exist %%F (set found=1) +if not defined found EXIT + +node %~dp0\node_modules\node-sass\bin\node-sass --output %~dp0\..\app\dist\css --sourcemap=none %~dp0\scss +%~dp0\node_modules\.bin\webpack --config %~dp0\webpack.dev.config.js --progress --colors --watch \ No newline at end of file