floatdrop / gulp-plumber

Fixing Node pipes
MIT License
807 stars 32 forks source link

error with gulp-autoprefixer 2.0.0 #26

Open javy-liu opened 9 years ago

javy-liu commented 9 years ago

gulp-autoprefixer 1.0.1 is ok, but gulp-autoprefixer 2.0.0 get error

gulp.task('sass', function(){
   return gulp.src('app/assets/styles/b.scss')
    .pipe($.plumber())
    .pipe($.rubySass({
      style: 'expanded',
      precision: 10
    }))
    .pipe($.autoprefixer({browsers: ['last 1 version']}))
    .pipe(gulp.dest('.tmp/styles'));
});

error

Plumber found unhandled error:
 CssSyntaxError in plugin 'gulp-autoprefixer'
Message:
    /Users/oych/evolution/b.css.map:3:1: Unknown word
Details:
    reason: Unknown word
    file: /Users/oych/evolution/b.css.map
    line: 3
    column: 1
    source: {
"version": 3,
"mappings": "",
"sources": [],
"names": [],
"file": "b.css"
}
    fileName: /var/folders/cv/tzl5b7s559j104k1llztqrcr0000gn/T/gulp-ruby-sass/_14139e58-9ebe-4c0f-beca-73a65bb01ce9/b.css.map
floatdrop commented 9 years ago

Seems like error in gulp-autoprefixer, rather than in gulp-plumber.

nicholas-johnson commented 9 years ago

This is an issue with gulp-autoprefixer. It appears to be having some trouble processing the map file.

Fixed temporarily by downgrading to "gulp-autoprefixer": "1.0.1"