javascript - Browserify and Reactify source maps include full local path names -
i use watchify/ browserify create bundle debug source maps command-
watchify main.js -o bundle.js -v -d
when use chrome devtools debug resulting app, source files accessible in orginal nested folder locations, visible in devtools' sources panel.
however when run through reactify command-
watchify main.js -t reactify -o bundle.js -v -d
chrome devtools shows source files in same folder bundle.js
, file name includes full local path name.
i finding annoying , hard identify correct file both in sources panel , in individual tabs file long display.
does know how around source files display in original folder locations (as per pic 1). thx
you need specify --full-paths option browserify false
see: https://github.com/substack/node-browserify#usage
watchify main.js -t reactify -o bundle.js -v -d --full-paths=false
Comments
Post a Comment