share/views/public/plugins/semantic-ui/tasks/watch.js in rbbt-rest-1.8.126 vs share/views/public/plugins/semantic-ui/tasks/watch.js in rbbt-rest-1.8.129

- old
+ new

@@ -15,15 +15,15 @@ clone = require('gulp-clone'), gulpif = require('gulp-if'), less = require('gulp-less'), minifyCSS = require('gulp-clean-css'), plumber = require('gulp-plumber'), - print = require('gulp-print').default, + print = require('gulp-print'), rename = require('gulp-rename'), replace = require('gulp-replace'), uglify = require('gulp-uglify'), - replaceExt = require('replace-ext'), + util = require('gulp-util'), watch = require('gulp-watch'), // user config config = require('./config/user'), @@ -117,15 +117,15 @@ gulp.start('build-css'); return; } else if(isPackagedTheme) { console.log('Change detected in packaged theme'); - lessPath = replaceExt(file.path, '.less'); + lessPath = util.replaceExtension(file.path, '.less'); lessPath = lessPath.replace(tasks.regExp.theme, source.definitions); } else if(isSiteTheme) { console.log('Change detected in site theme'); - lessPath = replaceExt(file.path, '.less'); + lessPath = util.replaceExtension(file.path, '.less'); lessPath = lessPath.replace(source.site, source.definitions); } else { console.log('Change detected in definition'); lessPath = file.path;