E
E
Eugene2018-09-06 21:56:54
Images
Eugene, 2018-09-06 21:56:54

Gulp 4, gulp-imacss and Deprecation Warning, what to do?

I am learning to work with Gulp 4 and tried the 'gulp-imacss' plugin
var imacss = require('gulp-imacss')

var imguri = {
        in: source + 'images/inline/*',
        out: source + 'scss/images/',
        filename: '_datauri.scss',
        namespace: 'img'
};

Next, I create a task to convert images to dataURI
gulp.task('imguri', function () {
    return gulp.src(imguri.in)
        .pipe(imagemin())
        .pipe(imacss(imguri.filename, imguri.namespace))
        .pipe(gulp.dest(imguri.out))
});

launch gulp imguriand receive

Starting 'imguri'...
(node:90037) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
The following tasks did not complete: imguri
Did you forget to signal async completion?

I do not understand what to do next? Please share your thoughts, or how to replace this plugin

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question