poedit - gulp watch TypeError: glob pattern string required -
i've .po files in application. i've created watch see when translations file have been changed , compile them
gulp.task('translations', () => gulp .src('po/.*po',) .pipe(gettext.compile({format: 'json'})) .pipe(gulp.dest('dist/translations/'))); ) gulp.task('watch', () => { gulp.watch('po/**/*.po', ['translations']); });
i use poedit if change works, if click save button without new change gulp process die throwing error typeerror: glob pattern string required
update
i've changed gulp.watch gulp-watch package , throws me better info
enoent: no such file or directory, stat '/home/rkmax/development/myproject/po/es_es.temp.po'
Comments
Post a Comment