MohammadYounes/grunt-rtlcss

How to save RTL file in same directory?

Closed this issue · 2 comments

for exmaple:

LTR file is in css/theme.css
i want RTL file in css/theme.rtl.css

is it possible?

Sure, this is a grunt task, simply do:

dest:'css',
ext: '.rtl.css'

But make sure to exclude .rtl.css.

If you are following the usage example from the README, then your task would be like:

rtlcss: {
  myTask:{
    // task options
    options: {
      // generate source maps
      map: {inline: false},
      // rtlcss options
      opts: {
        clean:false
      },
      // rtlcss plugins
      plugins:[],
      // save unmodified files
      saveUnmodified: true,
    },
    expand : true,
    cwd    : 'css/',
    dest   : 'css/',
    src    : ['**/*.css', '!**/*.rtl.css'],
    ext    : '.rtl.css'
  }
}

Thanks.