jjlharrison / gulp-rtlcss

Gulp plugin that uses RTLCSS to convert LTR CSS to RTL.
MIT License
36 stars 7 forks source link

rtlcss ignores inline options #8

Closed d7my11 closed 7 years ago

d7my11 commented 7 years ago
.toRight {
  /*rtl:remove*/
  direction: rtl;

  /*rtl:ignore*/
  text-algin: left;
}

in rtl file both properties is still there !

jjlharrison commented 7 years ago

@d7my11: I cannot reproduce your issue. I've added a test in d7c0123.

Could you provide more information about how you're using the plugin? Configuration or the snippet from your gulpfile.

jjlharrison commented 7 years ago

I'll assume that there's no problem unless I hear back.

jacobjuul commented 6 years ago

I am having the same issue.

return gulp
  .src(paths)
  // .pipe(sourcemaps.init())
  .pipe(
   sass().on('error', function(err) {
     sass.logError.bind(this)(err);
     this.emit('end');
   })
  )
  .pipe(
   postcss([
    autoprefixer({
      browsers: ['last 2 versions', 'IE >= 9']
    })
   ])
  )
  .pipe(concatCss(filename))
  .pipe(csso())
  .pipe(cloneSink) // Clone all the files, as we want a duplicate one that's changed to LTR
  .pipe(rtlcss())
  .pipe(rename({
    suffix: '.rtl'
  }))
  .pipe(cloneSink.tap())
  .pipe(rev(revOptions))
  .pipe(sourcemaps.write('.'))
  .pipe(gulp.dest('./dist'))
  .pipe(bs.stream());
}