Home Ask Login Register

Developers Planet

Your answer is one click away!

iamswf February 2016

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

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.


dlatikay February 2016

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.

Jose Jimenez February 2016

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.

Post Status

Asked in February 2016
Viewed 2,059 times
Voted 6
Answered 2 times


Leave an answer

Quote of the day: live life