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.

enter image description here

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.

enter image description here

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

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -