I use Sage 9 and run it from WSL on Windows 10 Home.
Everything starts correctly, webpack and Browser Sync log that they are watching the files now.
However, changing SCSS files (in ‘resources/assets/styles/’) doesn’t trigger webpack to rebuild.
I also tested with inotifywatch and chokidar (nodejs) and can confirm that changes to the SCSS file are indeed noticed in WSL shell.
What do I have to change/adjust in webpack config to make this work?
Are the files you watching in
/mnt/c/ or inside of the WSL filesystem?
I can’t say I came across any issues with watching files. The only hiccup I experienced was BrowserSync needing me to specify
chrome.exe including the
*.exe extension as well as assuring my
/mnt/c/Windows/System32/drivers/etc/hosts were synced (i.e.
cat /mnt/c/Windows/System32/drivers/etc/hosts | grep 192.* | sudo tee -a /etc/hosts).
I committed everything, overwrited everything with files from master from sage9 repository and then selectively reverted/committed to keep customizations. Afterwards it seems to work now.