Changeset 10841
- Timestamp:
- 05/31/2016 07:48:22 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r10807 r10841 6 6 7 7 BP_CSS = [ 8 '**/*.css' 8 '**/*.css', 9 '**/css-*.php' 9 10 ], 10 11 11 12 // CSS exclusions, for excluding files from certain tasks, e.g. rtlcss 12 13 BP_EXCLUDED_CSS = [ 13 '!**/*-rtl.css' 14 '!**/*-rtl.css', 15 '!**/*-rtl.php' 14 16 ], 15 17 … … 106 108 dest: SOURCE_DIR, 107 109 extDot: 'last', 108 ext: '-rtl.css', 109 src: BP_CSS.concat( BP_EXCLUDED_CSS, BP_EXCLUDED_MISC ) 110 src: BP_CSS.concat( BP_EXCLUDED_CSS, BP_EXCLUDED_MISC ), 111 rename: function ( dest, src ) { 112 if ( src.endsWith( '.php' ) ) { 113 return dest + src.replace( '.php', '-rtl.php' ); 114 } else { 115 return dest + src.replace( '.css', '-rtl.css' ); 116 } 117 } 110 118 } 111 119 },
Note: See TracChangeset
for help on using the changeset viewer.