3

I want to watch and output as following on Windows and Linux:

watchify ./src/login/login.js -o ./public/js/login.js -v && watchify ./src/unlock/unlock.js -o ./public/js/unlock.js -v && watchify ./src/admin/admin.js -o ./public/js/admin.js -v

Why in ./public/js directory I get just 1 file: dashboard.js instead of all of them?

Anthon
  • 69,918
  • 32
  • 186
  • 246
Szymon Toda
  • 4,454
  • 11
  • 43
  • 62

1 Answers1

5

add start before each watchify command to open it into a separate window.

start watchify ./src/login/login.js -o ./public/js/login.js -v && start watchify ./src/unlock/unlock.js -o ./public/js/unlock.js -v && start watchify ./src/admin/admin.js -o ./public/js/admin.js -v
marcel
  • 2,967
  • 1
  • 16
  • 25