Browse Source

Fix rtl css build

pull/1785/head
jlukic 9 years ago
parent
commit
3d81a91385
2 changed files with 9 additions and 7 deletions
  1. 10
      tasks/rtl/build.js
  2. 6
      tasks/rtl/watch.js

10
tasks/rtl/build.js

@ -25,11 +25,11 @@ var
uglify = require('gulp-uglify'),
// user config
config = require('./config/user'),
config = require('../config/user'),
// install config
tasks = require('./config/project/tasks'),
install = require('./config/project/install'),
tasks = require('../config/project/tasks'),
install = require('../config/project/install'),
// shorthand
globs = config.globs,
@ -66,6 +66,7 @@ module.exports = function(callback) {
.pipe(plumber())
.pipe(less(settings.less))
.pipe(autoprefixer(settings.prefix))
.pipe(rtlcss())
.pipe(flatten())
;
@ -80,6 +81,7 @@ module.exports = function(callback) {
.pipe(replace(comments.small.in, comments.small.out))
.pipe(replace(comments.tiny.in, comments.tiny.out))
.pipe(replace(assets.source, assets.uncompressed))
.pipe(rename(settings.rename.rtlCSS))
.pipe(header(banner, settings.header))
.pipe(gulpif(config.hasPermission, chmod(config.permission)))
.pipe(gulp.dest(output.uncompressed))
@ -94,7 +96,7 @@ module.exports = function(callback) {
.pipe(clone())
.pipe(replace(assets.source, assets.compressed))
.pipe(minifyCSS(settings.minify))
.pipe(rename(settings.rename.minCSS))
.pipe(rename(settings.rename.rtlMinCSS))
.pipe(header(banner, settings.header))
.pipe(gulpif(config.hasPermission, chmod(config.permission)))
.pipe(gulp.dest(output.compressed))

6
tasks/rtl/watch.js

@ -27,11 +27,11 @@ var
watch = require('gulp-watch'),
// user config
config = require('./config/user'),
config = require('../config/user'),
// task config
tasks = require('./config/project/tasks'),
install = require('./config/project/install'),
tasks = require('../config/project/tasks'),
install = require('../config/project/install'),
// shorthand
globs = config.globs,

Loading…
Cancel
Save