gulpjs/gulp-util

error in inner environment task

Closed this issue · 2 comments

good day have task

gulp.task('sass', function () {
    var local ={
        src: appFiles.styles,
        build: paths.styles.build
    }
    if(gutil.env.mob === true) {
        local.src = appMobile.styles;
        local.build = pathsMobile.styles.build;
    }
    return gulp.src(local.src)
        .pipe(sourcemaps.init())
        .pipe(sass.sync().on('error', sass.logError))
        .pipe(autoprefixer({
            browsers: autoprfixerTasks
        }))
        .pipe(sourcemaps.write('/'))
        .pipe(gulp.dest(local.build))
});

and run it in task for my mobile development

gulp.task('mobile', function() {
        var watchFiles = [appMobile.styles, appMobile.scripts.allJs, appMobile.markup.src, appMobile.images.img];

        runSequence(
            ['sass --mob', 'scripts:move --mob', 'images --mob' ,'markup --mob', 'temp'],
            'server --mob'
        ); 

and it says :
Task 'sass --mob' is not in your gulpfile
Please check the documentation for proper gulpfile formatting

how can i fix it ?

Support questions should be directed to StackOverflow. Please look into the documentation for run-sequence to understand what it is doing, it does not spawn processes with flags.