MohammadYounes / rtlcss

Framework for transforming Cascading Style Sheets (CSS) from Left-To-Right (LTR) to Right-To-Left (RTL)
https://rtlcss.com
MIT License
1.68k stars 129 forks source link

Exclude option #64

Open sidati opened 8 years ago

sidati commented 8 years ago

Hi again, Can you please provide the exclude option for files such as reset.css and stye.rtl.css, because using the CLI command you will get : style.css => style.rtl.css

and if you execute it a second time, it will generate :

style.css => style.rtl.css
style.rtl.css => style.rtl.rtl.css

P.S. I'm using a windows batch file instead of grunt/gulp.

MohammadYounes commented 8 years ago

Hi,

The CLI is set for a complete review, for the time being, the simplest solution would be to set the destination to a different folder rtlcss -d .\src .\dist-rtl

Thanks!

MohammadYounes commented 8 years ago

May be -x, -exclude flag to exclude files having the same output extension ?

sidati commented 8 years ago

yes, this is the idea.

sidati commented 8 years ago

Or just replace the xxx.rtl.css by default and let the -x option for excluding files list

MohammadYounes commented 8 years ago

Output files having the same name will be overwritten by default, The -x option would exclude processing any file having the output extension which has a default of .rtl.css

nivedita-peddiraju commented 6 years ago

We are using an Ember addon, which uses rtlcss.process() internally to do the conversion to RTL. We would like to exclude certain vendor files such as bootstrap files from the RTL conversion process(The vendor files automatically display in rtl format when dir='rtl') . Is there any way to do this?

MohammadYounes commented 6 years ago

@nive297 As you don't have control over the vendor files, You should consult with the Ember addon author on how to exclude certain files.

Thanks!

MahdiMajidzadeh commented 3 years ago

👍🏻