grunt-cssjanus
Advanced tools
Comparing version 0.1.2 to 0.2.0
{ | ||
"name": "grunt-cssjanus", | ||
"description": "Grunt plugin to convert CSS stylesheets between left-to-right and right-to-left", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"homepage": "https://github.com/yoavf/grunt-cssjanus", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -40,5 +40,13 @@ # grunt-cssjanus | ||
#### options.processContent | ||
Type: `Callback` | ||
Default value: `false` | ||
If set, the function will be called on the CSS after CSSJanus has run. | ||
## Release History | ||
0.2.0 - Add the process content callbaack to the be called on css after CSSJanus has run. | ||
0.1.2 - Only outputs file creation message if file has been created | ||
@@ -45,0 +53,0 @@ |
@@ -17,2 +17,3 @@ /* | ||
swapLeftRightInUrl: false, | ||
processContent: false, | ||
}); | ||
@@ -37,2 +38,5 @@ // Iterate over all specified file groups. | ||
var rtlcss = cssjanus.transform( src, options.swapLtrRtlInUrl, options.swapLeftRightInUrl ); | ||
if ( options.processContent ) { | ||
rtlcss = options.processContent( rtlcss, filepath ); | ||
} | ||
if ( ! options.generateExactDuplicates && rtlcss == src ) { | ||
@@ -39,0 +43,0 @@ grunt.log.writeln('Nothing to flip in ' + f.src ); |
5893
69
56