Gulp plugin that uses postcss-rtlcss to convert LTR CSS to RTL.
$ npm install --save-dev gulp-postcss-rtlcss
var gulp = require('gulp');
var rtlcss = require('gulp-postcss-rtlcss');
gulp.task('default', function () {
return gulp.src('styles.css')
.pipe(rtlcss())
.pipe(gulp.dest('dist'));
});
The plugin optionally accepts POSTCSS-RTLCSS
configuration either as an argument.
See the POSTCSS-RTLCSS documentation for more information about accepted configuration.
See CHANGELOG.md.