вроде все правильно сделанно, но выдает ошибку.
function js() {
return src(path.src.js, {base: ""})
.pipe(plumber())
.pipe(rigger())
.pipe(gulp.dest(path.build.js))
.pipe(uglify())
.pipe(rename({
suffix: ".min",
extname: ".js"
}))
.pipe(dest(path.build.js))
.pipe(browsersync.stream());
}
Ошибка
Using gulpfile D:\projects\gulp\gulpfile.js
[19:54:17] Starting 'js'...
[19:54:17] Plumber found unhandled error:
GulpUglifyError: unable to minify JavaScript
Caused by: SyntaxError: Unexpected token: punc «)»
File: D:\projects\gulp\dist\assets\js\app.js
Line: 7
Col: 17
[19:54:17] Finished 'js' after 58 ms