[Fix] Fixed deployment of locales.json in gulpfile.js

This commit is contained in:
Robert von Burg 2020-01-27 16:44:46 +01:00
parent d96a702e7b
commit a7a0549984
1 changed files with 4 additions and 4 deletions

View File

@ -25,10 +25,10 @@ gulp.task('copy', function () {
])
.pipe(gulp.dest('www/img/'));
var json = gulp.src([
'app/bower_components/strolch-wc-auth/locales.json'
var locales = gulp.src([
'app/bower_components/**/locales.json'
])
.pipe(gulp.dest('www/bower_components/strolch-wc-auth/'));
.pipe(gulp.dest('www/bower_components/'));
var app_files = gulp.src([
'app/bower.json', 'app/manifest.json', 'app/locales.json', '**/moment.min.js'
@ -40,7 +40,7 @@ gulp.task('copy', function () {
])
.pipe(gulp.dest('js'));
return merge(svg, imgs, json, app_files, js)
return merge(svg, imgs, locales, app_files, js)
.pipe($.size({title: 'Copy app files to dist dir:'}));
});