大家好我使用gulp uglify和concat来缩小js代码。使用gulp时显示javascript错误
但是,我想有一种方法来检测原始开发人员代码中的任何编码错误,以便我可以检查原始代码,不仅在缩小后通知。
我可以知道我该怎么做吗?
以下是我的代码。
gulp.task('frontend.js', function() {
return gulp.src([paths.dev.js + 'jquery.js', paths.dev.js + 'bootstrap.js', paths.dev.js + 'basic.js'])
.pipe(jsconcat('script.js'))
.pipe(uglify())
.pipe(gulp.dest(paths.assets.js)) // output: script.js
.pipe(notify({message: 'frontend.js converted'}));
});