require to import
exports are not working
This commit is contained in:
parent
f7a5481fd2
commit
da075e5beb
7 changed files with 69 additions and 72 deletions
|
|
@ -1,4 +1,4 @@
|
|||
const plumber = require('gulp-plumber');
|
||||
import plumber from 'gulp-plumber';
|
||||
// const notify = require('gulp-notify');
|
||||
|
||||
// function catchErrors(errTitle) {
|
||||
|
|
@ -11,7 +11,7 @@ const plumber = require('gulp-plumber');
|
|||
// });
|
||||
// }
|
||||
|
||||
function catchErrors() {
|
||||
export function catchErrors() {
|
||||
return plumber({
|
||||
errorHandler: function (err) {
|
||||
// Logs error in console
|
||||
|
|
@ -20,6 +20,5 @@ function catchErrors() {
|
|||
this.emit('end');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = catchErrors;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue