Skip to content

Commit b54850f

Browse files
committed
fix(gulpfile): [email protected] need "dot:true" option
when gulp build, [email protected] 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 angular-fullstack#2146 angular-fullstack#2146
1 parent 7538bca commit b54850f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: templates/app/gulpfile.babel(gulp).js

+4-4
Original file line numberDiff line numberDiff line change
@@ -577,10 +577,10 @@ gulp.task('clean:dist', () => del([`${paths.dist}/!(.git*|.openshift|Procfile)**
577577
gulp.task('build:client', ['styles', 'html', 'constant', 'build:images'], () => {
578578
var manifest = gulp.src(`${paths.dist}/${clientPath}/assets/rev-manifest.json`);
579579

580-
var appFilter = plugins.filter('**/app.js', {restore: true});
581-
var jsFilter = plugins.filter('**/*.js', {restore: true});
582-
var cssFilter = plugins.filter('**/*.css', {restore: true});
583-
var htmlBlock = plugins.filter(['**/*.!(html)'], {restore: true});
580+
var appFilter = plugins.filter('**/app.js', {restore: true, dot: true});
581+
var jsFilter = plugins.filter('**/*.js', {restore: true, dot: true});
582+
var cssFilter = plugins.filter('**/*.css', {restore: true, dot: true});
583+
var htmlBlock = plugins.filter(['**/*.!(html)'], {restore: true, dot: true});
584584

585585
return gulp.src(paths.client.mainView)
586586
.pipe(plugins.useref())

0 commit comments

Comments
 (0)