what dose the '-d' option in watchify(a npm package ) mean?

141 Views Asked by At

here is the package's link:https://www.npmjs.com/package/watchify I saw an usage somewhere: "watchify -o js/bundle.js -v -d js/app.js". I hope to know what dose the '-d' option mean. Thank you.

2

There are 2 best solutions below

1
On

According to watchify source code, it gets passed on to browserify, and taken from https://github.com/substack/node-browserify#usage:

--debug -d Enable source maps that allow you to debug your files separately.

0
On

Watchify uses browserify and includes the argument list for it: https://github.com/substack/watchify/blob/master/bin/args.js

Look at https://github.com/substack/node-browserify#usage

for more information. As Andrey said, it sets up source maps for debugging.