Browse Source

#2299 fix conditions for RTL both

pull/2300/head
jlukic 9 years ago
parent
commit
283943bf5c
2 changed files with 11 additions and 9 deletions
  1. 11
      tasks/build.js
  2. 9
      tasks/watch.js

11
tasks/build.js

@ -20,12 +20,13 @@ module.exports = function(callback) {
return;
}
// check for right-to-left language
// check for right-to-left (RTL) language
if(config.rtl == 'both') {
gulp.start('built-rtl');
}
if(config.rtl === true || config.rtl === 'Yes') {
gulp.start('build-rtl');
if(config.rtl !== 'both') {
return;
}
gulp.start('built-rtl');
return;
}
gulp.start('build-javascript');

9
tasks/watch.js

@ -56,12 +56,13 @@ module.exports = function(callback) {
return;
}
// check for right-to-left language
// check for right-to-left (RTL) language
if(config.rtl == 'both') {
gulp.start('watch-rtl');
}
if(config.rtl === true || config.rtl === 'Yes') {
gulp.start('watch-rtl');
if(config.rtl !== 'both') {
return;
}
return;
}
//console.clear();

Loading…
Cancel
Save