Debugging JS in Sage

When developing all JS is output into:


For production this is great but while developing this is bad as it makes debugging the JS really difficult. Is there a way in which all JS files can be debugged? Like a development mode in gulp?

Source maps are generated, you can use those in most browser inspectors.

Otherwise, you could disable uglify in the gulp.js file.

1 Like

Commenting out the uglify stuff in my gulpfile was the solution:

Line 21 // var uglify = require('gulp-uglify');

Line 133 // .pipe(uglify, { // compress: { // 'drop_debugger': enabled.stripJSDebug // } // })