Metronic v8.0.37 Sourcemaps not working as Expected
We are facing issue with jsSourcemaps in gulp.config.js following are the settings:
cssSourcemaps just working fine and chromes dev tool showing and debugging actual SCSS file and line number.
But the issue is with jsSourcemaps this settings create external source map files which showing in last comment of scripts.bundle.js like //# sourceMappingURL=scripts.bundle.js.map and I have verified that source map file also exists. But Chrome dev tool showing error 'Uncaught ReferenceError: SmoothScroll is not defined in scripts.bundle.js:6760 where as actual error is inside demo1/src/js/layout/app.js line number 417
I'm confused why chrome inspect showing scripts.bundle.js it should show actual file app.js and the line number.
Kindly let me know if I'm missing something or guide me in right direction.