From b54850f697422a99a27e05c3948c33afae109370 Mon Sep 17 00:00:00 2001 From: jacinchan Date: Sat, 13 Aug 2016 22:58:06 +0800 Subject: [PATCH] fix(gulpfile): gulp-filter@4.0.0 need "dot:true" option when gulp build, gulp-filter@4.0.0 will miss file path start with dot like ".tmp/app/app.js", that cause some files not uglify or rev. add option "dot:true" resolve the problem #2146 https://github.com/angular-fullstack/generator-angular-fullstack/issues/2146 --- templates/app/gulpfile.babel(gulp).js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/app/gulpfile.babel(gulp).js b/templates/app/gulpfile.babel(gulp).js index 16582400f..0703c4345 100644 --- a/templates/app/gulpfile.babel(gulp).js +++ b/templates/app/gulpfile.babel(gulp).js @@ -577,10 +577,10 @@ gulp.task('clean:dist', () => del([`${paths.dist}/!(.git*|.openshift|Procfile)** gulp.task('build:client', ['styles', 'html', 'constant', 'build:images'], () => { var manifest = gulp.src(`${paths.dist}/${clientPath}/assets/rev-manifest.json`); - var appFilter = plugins.filter('**/app.js', {restore: true}); - var jsFilter = plugins.filter('**/*.js', {restore: true}); - var cssFilter = plugins.filter('**/*.css', {restore: true}); - var htmlBlock = plugins.filter(['**/*.!(html)'], {restore: true}); + var appFilter = plugins.filter('**/app.js', {restore: true, dot: true}); + var jsFilter = plugins.filter('**/*.js', {restore: true, dot: true}); + var cssFilter = plugins.filter('**/*.css', {restore: true, dot: true}); + var htmlBlock = plugins.filter(['**/*.!(html)'], {restore: true, dot: true}); return gulp.src(paths.client.mainView) .pipe(plugins.useref())