From 0c3d0214cbc0ddd80a5ba26fe91d85dd9c1ef1fd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 21 Jul 2014 02:50:45 +0000 Subject: [PATCH] Gruntfile: Change import rules to include RTL stylesheets when running CSSJanus. see #28966. git-svn-id: https://develop.svn.wordpress.org/trunk@29256 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 2da93900f0..d4e688b4c6 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -161,7 +161,10 @@ module.exports = function(grunt) { cssjanus: { core: { options: { - swapLtrRtlInUrl: false + swapLtrRtlInUrl: false, + processContent: function( src ) { + return src.replace( /url\((.+?)\.css\)/g, 'url($1-rtl.css)' ); + } }, expand: true, cwd: SOURCE_DIR,