less-plugin-autoprefix: ENOENT Error

Receive error:

lmauldin@9c68fd81e7d7:/var/www/html/pmtool/erp-extender/pms420$ ./node_modules/.bin/gulp less
[15:24:43] Using gulpfile /var/www/html/pmtool/erp-extender/pms420/gulpfile.js
[15:24:43] Starting 'less'...
Potentially unhandled rejection [2] Error: ENOENT, open '<input css 1>'
    at Error (native)

Relevant gulp file:

gulp.task("less", function() {
    var cleancss = new lessPluginCleanCSS({ advanced: true });
   var autoprefix= new lessPluginAutoPrefix({browsers: ["last 2 versions"]});
    //return gulp.src(['./assets/styles/application.less', './assets/styles/*/*.less'])
    return gulp.src(['./assets/styles/application.less'])
        .pipe(sourcemaps.init())
        .pipe(less({
            plugins: [autoprefix]
        }))
        .pipe(sourcemaps.write()) //.pipe(sourcemaps.write('./maps'))
        .pipe(gulp.dest('./webroot/styles'));
});

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 24 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Can someone with edit access please correct the title of this issue by replacing “ENONET” with “ENOENT”? This will save some time for people (like me) searching online for “ENONET”; this issue is the first one shown by Google.