there is no problem with using the original file, and using js compressed with gulp will report this error.
gulp is configured as follows:
gulp.task ("bab", function () {
)var path = "./cdn/public_html/4.0/js/member_activity.js"
var index = path.lastIndexOf("/")
var ToPath = path.slice(0, index);
return gulp.src(path)
.pipe(sourcemaps.init())
.pipe(babel({
presets: ["es2015"]
}))
.pipe(uglify(
{
compress:{
drop_console: true, // console
drop_debugger: true // debugger
}
}
))
.pipe(rename({
extname: ".min.js"
}))
.pipe(sourcemaps.write("./cdn/public_html/4.0/js/map"))
.pipe(gulp.dest("./cdn/public_html/4.0/js"));
})
I would also like to ask an experienced boss to advise us what will lead to this operation.