require to import

exports are not working
This commit is contained in:
Stephan Hagedorn 2022-08-11 08:41:39 +02:00
parent f7a5481fd2
commit da075e5beb
7 changed files with 69 additions and 72 deletions

View file

@ -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;
}