grunt-cssjanus
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -20,3 +20,4 @@ /* | ||
swapLtrRtlInUrl: true, | ||
swapLeftRightInUrl: false | ||
swapLeftRightInUrl: false, | ||
generateExactDuplicates: false | ||
}, | ||
@@ -23,0 +24,0 @@ }, |
{ | ||
"name": "grunt-cssjanus", | ||
"description": "Grunt plugin to convert CSS stylesheets between left-to-right and right-to-left", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/yoavf/grunt-cssjanus", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -34,4 +34,13 @@ # grunt-cssjanus | ||
#### options.generateExactDuplicates | ||
Type: `Boolean` | ||
Default value: `false` | ||
Whether to generate the RTL file if it ends up being the same as the LTR file. | ||
## Release History | ||
0.1.1 - Add the generateExactDuplicates option | ||
0.1.0 - initial release |
@@ -36,3 +36,3 @@ /* | ||
var rtlcss = cssjanus.transform( src, options.swapLtrRtlInUrl, options.swapLeftRightInUrl ); | ||
if ( rtlcss == src ) | ||
if ( ! options.generateExactDuplicates && rtlcss == src ) | ||
grunt.log.writeln('Nothing to flip in ' + f.src ); | ||
@@ -39,0 +39,0 @@ else // Write the destination file. |
5475
65
46